diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2020-01-10 20:56:00 +0100 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2020-01-10 20:56:00 +0100 |
commit | 14bc721b07017c6c4d29f84d7ee807bca0d7de31 (patch) | |
tree | 9ca2c47cb58c21b8e2a82a82c99446173cff3cf8 /src/main/java/pl/edu/mimuw/cloudatlas/agent/messages | |
parent | 52f74f179179b580e6171466c221b20f4e2a6b29 (diff) | |
parent | e2cfe0d9643c3a02223a9e9c4f7d6ed29f0e363a (diff) |
Merge branch 'master' into gossip-girl-2
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/messages')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java index 4c223f5..1d7c0c6 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java @@ -2,9 +2,12 @@ package pl.edu.mimuw.cloudatlas.agent.messages; import pl.edu.mimuw.cloudatlas.model.ValueTime; +import java.net.InetAddress; + public class RemoteGossipGirlMessage extends GossipGirlMessage { private ValueTime sentTimestamp; private ValueTime receivedTimestamp; + private InetAddress senderAddress; public RemoteGossipGirlMessage(String messageId, long timestamp, Type type) { super(messageId, timestamp, type); @@ -27,4 +30,8 @@ public class RemoteGossipGirlMessage extends GossipGirlMessage { public ValueTime getReceivedTimestamp() { return receivedTimestamp; } + + public InetAddress getSenderAddress() { return senderAddress; } + + public void setSenderAddress(InetAddress senderAddress) { this.senderAddress = senderAddress; } } |