m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/HejkaMessage.java
blob: 340d939e698a296e3adb49c164923a2415f28f8e (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
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 HejkaMessage extends RemoteGossipGirlMessage {
    private long senderGossipId;
    private Map<PathName, ValueTime> zoneTimestamps;
    private Map<Attribute, ValueTime> queryTimestamps;

    public HejkaMessage(String messageId, long timestamp, long senderGossipId, Map<PathName, ValueTime> zoneTimestamps, Map<Attribute, ValueTime> queryTimestamps) {
        super(messageId, timestamp, Type.HEJKA);
        this.senderGossipId = senderGossipId;
        this.zoneTimestamps = zoneTimestamps;
        this.queryTimestamps = queryTimestamps;
    }

    public long getSenderGossipId() {
        return senderGossipId;
    }

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

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