org.javagroups.protocols.ring
Class RingToken

java.lang.Object
  extended byorg.javagroups.protocols.ring.RingToken
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class RingToken
extends java.lang.Object
implements java.io.Externalizable

See Also:
Serialized Form

Field Summary
static int OPERATIONAL
           
static int RECOVERY
           
 
Constructor Summary
RingToken()
           
RingToken(int type)
           
 
Method Summary
 void addBacklog(int back)
           
 void addLastRoundBroadcastCount(int transmitCount)
           
 void addRecoveredMember(Address member)
           
 long getAllReceivedUpto()
           
 Address getAruId()
           
 int getBacklog()
           
 long getHighestSequence()
           
 int getLastRoundBroadcastCount()
           
 java.util.Collection getRecoveredMembers()
           
 java.util.Collection getRetransmissionRequests()
           
 long getTokenSequence()
           
 int getType()
           
 int getWindowSize()
           
 int getWindowThreshold()
           
 void incrementTokenSequence()
           
 void readExternal(java.io.ObjectInput oi)
           
 void setAllReceivedUpto(long aru)
           
 void setAruId(Address address)
           
 void setHighestSequence(long highestSequence)
           
 void setType(int type)
           
 void setWindowSize(int newSize)
           
 void setWindowThreshold(int newSize)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput oo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATIONAL

public static int OPERATIONAL

RECOVERY

public static int RECOVERY
Constructor Detail

RingToken

public RingToken()

RingToken

public RingToken(int type)
Method Detail

setAruId

public void setAruId(Address address)

getAruId

public Address getAruId()

getType

public int getType()

setType

public void setType(int type)

getTokenSequence

public long getTokenSequence()

incrementTokenSequence

public void incrementTokenSequence()

getHighestSequence

public long getHighestSequence()

setHighestSequence

public void setHighestSequence(long highestSequence)

getAllReceivedUpto

public long getAllReceivedUpto()

setAllReceivedUpto

public void setAllReceivedUpto(long aru)

getLastRoundBroadcastCount

public int getLastRoundBroadcastCount()

addLastRoundBroadcastCount

public void addLastRoundBroadcastCount(int transmitCount)

getBacklog

public int getBacklog()

addBacklog

public void addBacklog(int back)

setWindowSize

public void setWindowSize(int newSize)

addRecoveredMember

public void addRecoveredMember(Address member)

getRecoveredMembers

public java.util.Collection getRecoveredMembers()

getWindowSize

public int getWindowSize()

setWindowThreshold

public void setWindowThreshold(int newSize)

getWindowThreshold

public int getWindowThreshold()

getRetransmissionRequests

public java.util.Collection getRetransmissionRequests()

writeExternal

public void writeExternal(java.io.ObjectOutput oo)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput oi)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toString

public java.lang.String toString()


Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.