m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/AgentMessage.java
blob: 8afe5bea1fd8bc477b4fbfa8d8d1d0956dd5985b (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package pl.edu.mimuw.cloudatlas.agent.message;

public class AgentMessage {

    public enum AgentModule {
        TIMER_SCHEDULER,
        TIMER_GTP,
        RMI,
        UDP,
        GOSSIP_IN,
        GOSSIP_OUT,
        STATE,
        QUERY
    }

    private String requestId;
    private AgentModule destinationModule;
    private long timestamp;

    public AgentMessage(String requestId, AgentModule destinationModule, long timestamp) {
        this.requestId = requestId;
        this.destinationModule = destinationModule;
        this.timestamp = timestamp;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public AgentModule getDestinationModule() {
        return destinationModule;
    }

    public void setDestinationModule(AgentModule destinationModule) {
        this.destinationModule = destinationModule;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}