|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.mitosis.common.SimpleCSN
public class SimpleCSN
Basic implementation of CSN.
| Constructor Summary | |
|---|---|
SimpleCSN(byte[] value)
Creates a new instance of SimpleCSN from the serialized data |
|
SimpleCSN(long timestamp,
ReplicaId replicaId,
int operationSequence)
Creates a new instance. |
|
SimpleCSN(java.lang.String value)
Creates a new instance of SimpleCSN from a String. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one |
int |
getOperationSequence()
Returns sequence number of modification. |
ReplicaId |
getReplicaId()
Returns replica ID. |
long |
getTimestamp()
Returns GMT timestamp of modification. |
int |
hashCode()
Returns a hash code value for the object. |
byte[] |
toBytes()
Get the CSN as a byte array. |
java.lang.String |
toOctetString()
Return the CSN as a formated string. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCSN(long timestamp,
ReplicaId replicaId,
int operationSequence)
timestamp - GMT timestamp of modificationreplicaId - Replica ID where modification occurred ([-_A-Za-z0-9]{1,16})operationSequence - Operation sequence
public SimpleCSN(java.lang.String value)
throws InvalidCSNException
value - The String containing the CSN
InvalidCSNExceptionpublic SimpleCSN(byte[] value)
value - The byte array which contains the serialized CSN| Method Detail |
|---|
public java.lang.String toOctetString()
toOctetString in interface CSNpublic byte[] toBytes()
toBytes in interface CSNpublic long getTimestamp()
CSN
getTimestamp in interface CSNpublic ReplicaId getReplicaId()
CSN
getReplicaId in interface CSNpublic int getOperationSequence()
CSN
getOperationSequence in interface CSNpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.
true if this object is the same as the obj argument;
false otherwise.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the Object to be compared.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||