cgl.narada.service.security.kmc
Class TimeStampedSeqNo

java.lang.Object
  extended by cgl.narada.service.security.kmc.TimeStampedSeqNo

public class TimeStampedSeqNo
extends Object

A structure that maintains the current NTP timestamp and a sequence number
Created on Sep 14, 2005


Constructor Summary
TimeStampedSeqNo(long ts, int seq)
           
 
Method Summary
 byte[] getBytes()
           
 int getSequenceNumber()
           
 long getTimeStamp()
           
 boolean isGreater(TimeStampedSeqNo prev)
          Checks of the specified TimeStampedSeqNo is greater than the current one
 String toString()
           
static TimeStampedSeqNo unmarshal(byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeStampedSeqNo

public TimeStampedSeqNo(long ts,
                        int seq)
Method Detail

getTimeStamp

public long getTimeStamp()
Returns:
Returns the _currentTimeStamp.

getSequenceNumber

public int getSequenceNumber()
Returns:
Returns the _sequenceNumber.

isGreater

public boolean isGreater(TimeStampedSeqNo prev)
Checks of the specified TimeStampedSeqNo is greater than the current one

Parameters:
stssn -
Returns:

toString

public String toString()
Overrides:
toString in class Object

getBytes

public byte[] getBytes()

unmarshal

public static TimeStampedSeqNo unmarshal(byte[] bytes)


For comments and suggestions please send e-mail to The NaradaBrokering Project