org.sdnplatform.sync.internal.version
Class ClockEntry
java.lang.Object
org.sdnplatform.sync.internal.version.ClockEntry
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public final class ClockEntry
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
An entry element for a vector clock versioning scheme This assigns the
version from a specific machine, the VectorClock keeps track of the complete
system version, which will consist of many individual Version objects.
- See Also:
- Serialized Form
Constructor Summary |
ClockEntry(short nodeId,
long version)
Create a new Version from constituate parts |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ClockEntry
public ClockEntry(short nodeId,
long version)
- Create a new Version from constituate parts
- Parameters:
nodeId
- The node idversion
- The current version
clone
public ClockEntry clone()
- Overrides:
clone
in class java.lang.Object
getNodeId
public short getNodeId()
getVersion
public long getVersion()
incremented
public ClockEntry incremented()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object