org.apache.directory.mitosis.common
Interface CSN

All Superinterfaces:
java.lang.Comparable, java.io.Serializable
All Known Implementing Classes:
SimpleCSN

public interface CSN
extends java.io.Serializable, java.lang.Comparable

Represents 'Change Sequence Number' in LDUP specification. A CSN is a composition of a timestamp, a replica ID and a operation sequence number. It distinguishes a change made on an object on a server, and if two operations take place during the same timeStamp, the operation sequence number makes those operations distinct.


Method Summary
 int getOperationSequence()
          Returns sequence number of modification.
 ReplicaId getReplicaId()
          Returns replica ID.
 long getTimestamp()
          Returns GMT timestamp of modification.
 byte[] toBytes()
          Returns a byte array representing the CSN
 java.lang.String toOctetString()
          Returns octet-string representation of this CSN.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getTimestamp

long getTimestamp()
Returns GMT timestamp of modification.


getReplicaId

ReplicaId getReplicaId()
Returns replica ID.


getOperationSequence

int getOperationSequence()
Returns sequence number of modification.


toOctetString

java.lang.String toOctetString()
Returns octet-string representation of this CSN.


toBytes

byte[] toBytes()
Returns a byte array representing the CSN