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

import pl.edu.mimuw.cloudatlas.agent.modules.ModuleType;
import pl.edu.mimuw.cloudatlas.model.PathName;
import pl.edu.mimuw.cloudatlas.model.ValueContact;

public class InitiateGossipMessage extends GossipGirlMessage {
    private PathName ourPath;
    private ValueContact theirContact;

    public InitiateGossipMessage(String messageId, long timestamp, PathName ourPath, ValueContact theirContact) {
        super(messageId, timestamp, Type.INITIATE);
        this.ourPath = ourPath;
        this.theirContact = theirContact;
    }

    public PathName getOurPath() {
        return ourPath;
    }

    public ValueContact getTheirContact() {
        return theirContact;
    }
}