blob: 97bef69a5a7fca65d9e1178f2f2024dfb54d6e8c (
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
28
|
package pl.edu.mimuw.cloudatlas.agent.messages;
import pl.edu.mimuw.cloudatlas.agent.modules.Module;
import pl.edu.mimuw.cloudatlas.agent.modules.ModuleType;
import pl.edu.mimuw.cloudatlas.agent.modules.Qurnik;
public abstract class QurnikMessage extends AgentMessage {
public enum Type {
RUN_QUERIES
}
private Type type;
public QurnikMessage(String messageId, long timestamp, Type type) {
super(messageId, ModuleType.QUERY, timestamp);
this.type = type;
}
public QurnikMessage() {}
public Type getType() {
return type;
}
public void callMe(Module module) throws InterruptedException, Module.InvalidMessageType {
module.handleTyped(this);
}
}
|