m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/GetStateMessage.java
blob: 63392e826e78e2b1b511ba0277c428121bb0d660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package pl.edu.mimuw.cloudatlas.agent.messages;

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

public class GetStateMessage extends StanikMessage {
    private ModuleType requestingModule;
    private long requestId;

    public GetStateMessage(String messageId, long timestamp, ModuleType requestingModule, long requestId) {
        super(messageId, timestamp, Type.GET_STATE);
        this.requestingModule = requestingModule;
        this.requestId = requestId;
    }

    public ModuleType getRequestingModule() {
        return requestingModule;
    }

    public long getRequestId() {
        return requestId;
    }
}