Support for optimistic replication on GossipHostStore
diff --git a/core/store/dist/src/main/java/org/onlab/onos/store/host/impl/InternalHostRemovedEvent.java b/core/store/dist/src/main/java/org/onlab/onos/store/host/impl/InternalHostRemovedEvent.java
new file mode 100644
index 0000000..8dd3b44
--- /dev/null
+++ b/core/store/dist/src/main/java/org/onlab/onos/store/host/impl/InternalHostRemovedEvent.java
@@ -0,0 +1,34 @@
+package org.onlab.onos.store.host.impl;
+
+import org.onlab.onos.net.HostId;
+import org.onlab.onos.store.Timestamp;
+
+/**
+ * Information published by GossipHostStore to notify peers of a host
+ * removed event.
+ */
+public class InternalHostRemovedEvent {
+
+ private final HostId hostId;
+ private final Timestamp timestamp;
+
+ public InternalHostRemovedEvent(HostId hostId, Timestamp timestamp) {
+ this.hostId = hostId;
+ this.timestamp = timestamp;
+ }
+
+ public HostId hostId() {
+ return hostId;
+ }
+
+ public Timestamp timestamp() {
+ return timestamp;
+ }
+
+ // for serialization.
+ @SuppressWarnings("unused")
+ private InternalHostRemovedEvent() {
+ hostId = null;
+ timestamp = null;
+ }
+}