m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/NoCoTamMessage.java
blob: 3dd0c4d28b26e896a3626a0ec0ec54654e26d921 (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
50
package pl.edu.mimuw.cloudatlas.agent.messages;

import java.util.Map;

import pl.edu.mimuw.cloudatlas.model.Attribute;
import pl.edu.mimuw.cloudatlas.model.PathName;
import pl.edu.mimuw.cloudatlas.model.ValueTime;

public class NoCoTamMessage extends RemoteGossipGirlMessage {
    private long receiverGossipId;
    private long senderGossipId;
    private Map<PathName, ValueTime> zoneTimestamps;
    private Map<Attribute, ValueTime> queryTimestamps;
    private ValueTime hejkaSendTimestamp;
    private ValueTime hejkaReceiveTimestamp;

    public NoCoTamMessage(String messageId, long timestamp, long receiverGossipId, long senderGossipId, Map<PathName, ValueTime> zoneTimestamps, Map<Attribute, ValueTime> queryTimestamps, ValueTime hejkaSendTimestamp, ValueTime hejkaReceiveTimestamp) {
        super(messageId, timestamp, Type.NO_CO_TAM);
        this.receiverGossipId = receiverGossipId;
        this.senderGossipId = senderGossipId;
        this.zoneTimestamps = zoneTimestamps;
        this.queryTimestamps = queryTimestamps;
        this.hejkaSendTimestamp = hejkaSendTimestamp;
        this.hejkaReceiveTimestamp = hejkaReceiveTimestamp;
    }

    public long getReceiverGossipId() {
        return receiverGossipId;
    }

    public long getSenderGossipId() {
        return senderGossipId;
    }

    public Map<PathName, ValueTime> getZoneTimestamps() {
        return zoneTimestamps;
    }

    public Map<Attribute, ValueTime> getQueryTimestamps() {
        return queryTimestamps;
    }

    public ValueTime getHejkaSendTimestamp() {
        return hejkaSendTimestamp;
    }

    public ValueTime getHejkaReceiveTimestamp() {
        return hejkaReceiveTimestamp;
    }
}