Madan Jampani | 312a298 | 2014-10-14 21:07:16 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store.host.impl; |
| 2 | |
| 3 | import org.onlab.onos.net.HostId; |
| 4 | import org.onlab.onos.store.Timestamp; |
| 5 | |
| 6 | /** |
| 7 | * Information published by GossipHostStore to notify peers of a host |
| 8 | * removed event. |
| 9 | */ |
| 10 | public class InternalHostRemovedEvent { |
| 11 | |
| 12 | private final HostId hostId; |
| 13 | private final Timestamp timestamp; |
| 14 | |
| 15 | public InternalHostRemovedEvent(HostId hostId, Timestamp timestamp) { |
| 16 | this.hostId = hostId; |
| 17 | this.timestamp = timestamp; |
| 18 | } |
| 19 | |
| 20 | public HostId hostId() { |
| 21 | return hostId; |
| 22 | } |
| 23 | |
| 24 | public Timestamp timestamp() { |
| 25 | return timestamp; |
| 26 | } |
| 27 | |
| 28 | // for serialization. |
| 29 | @SuppressWarnings("unused") |
| 30 | private InternalHostRemovedEvent() { |
| 31 | hostId = null; |
| 32 | timestamp = null; |
| 33 | } |
| 34 | } |