m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RMIMessage.java
blob: a8e3afbde5bff3f5b40818d60f643655cb347f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package pl.edu.mimuw.cloudatlas.agent.messages;

import pl.edu.mimuw.cloudatlas.agent.modules.Module;
import pl.edu.mimuw.cloudatlas.agent.modules.ModuleType;

public class RMIMessage extends AgentMessage {
    public RMIMessage(String messageId, long timestamp) {
        super(messageId, ModuleType.RMI, timestamp);
    }

    public void callMe(Module module) throws InterruptedException, Module.InvalidMessageType {
        module.handleTyped(this);
    }
}