blob: b23f6e0b4bf8e7fb468cd29acbd8d9146d554c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package pl.edu.mimuw.cloudatlas.agent.messages;
import pl.edu.mimuw.cloudatlas.agent.modules.Module;
import pl.edu.mimuw.cloudatlas.agent.modules.ModuleType;
public abstract class StanikMessage extends AgentMessage {
public enum Type {
GET_STATE,
UPDATE_ATTRIBUTES,
UPDATE_QUERIES
}
private Type type;
public StanikMessage(String messageId, long timestamp, Type type) {
super(messageId, ModuleType.STATE, timestamp);
this.type = type;
}
public Type getType() {
return type;
}
public void callMe(Module module) throws InterruptedException, Module.InvalidMessageType {
module.handleTyped(this);
}
}
|