Bugfixes for DistributedLockManager functionality
Added a method called broadcastIncludeSelf to ClusterCommunicationService.
Cosmetic improvements: added toString methods
Change-Id: I1d58720c29e6f8642f950670c3a6d95a7019a491
diff --git a/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/TableModificationEvent.java b/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/TableModificationEvent.java
index b0962dc..31dcaab 100644
--- a/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/TableModificationEvent.java
+++ b/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/TableModificationEvent.java
@@ -2,6 +2,8 @@
import org.onlab.onos.store.service.VersionedValue;
+import com.google.common.base.MoreObjects;
+
/**
* A table modification event.
*/
@@ -9,7 +11,6 @@
/**
* Type of table modification event.
- *
*/
public enum Type {
ROW_ADDED,
@@ -94,4 +95,14 @@
public Type type() {
return type;
}
+
+ @Override
+ public String toString() {
+ return MoreObjects.toStringHelper(getClass())
+ .add("type", type)
+ .add("tableName", tableName)
+ .add("key", key)
+ .add("version", value.version())
+ .toString();
+ }
}