org.jgroups.protocols.ring

Class RingToken

Implemented Interfaces:
Externalizable

public class RingToken
extends java.lang.Object
implements Externalizable

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()
Collection
getRecoveredMembers()
Collection
getRetransmissionRequests()
long
getTokenSequence()
int
getType()
int
getWindowSize()
int
getWindowThreshold()
void
incrementTokenSequence()
void
readExternal(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)
String
toString()
void
writeExternal(ObjectOutput oo)

Field Details

OPERATIONAL

public static final int OPERATIONAL
Field Value:
0

RECOVERY

public static final int RECOVERY
Field Value:
1

Constructor Details

RingToken

public RingToken()

RingToken

public RingToken(int type)

Method Details

addBacklog

public void addBacklog(int back)

addLastRoundBroadcastCount

public void addLastRoundBroadcastCount(int transmitCount)

addRecoveredMember

public void addRecoveredMember(Address member)

getAllReceivedUpto

public long getAllReceivedUpto()

getAruId

public Address getAruId()

getBacklog

public int getBacklog()

getHighestSequence

public long getHighestSequence()

getLastRoundBroadcastCount

public int getLastRoundBroadcastCount()

getRecoveredMembers

public Collection getRecoveredMembers()

getRetransmissionRequests

public Collection getRetransmissionRequests()

getTokenSequence

public long getTokenSequence()

getType

public int getType()

getWindowSize

public int getWindowSize()

getWindowThreshold

public int getWindowThreshold()

incrementTokenSequence

public void incrementTokenSequence()

readExternal

public void readExternal(ObjectInput oi)
            throws IOException,
                   ClassNotFoundException

setAllReceivedUpto

public void setAllReceivedUpto(long aru)

setAruId

public void setAruId(Address address)

setHighestSequence

public void setHighestSequence(long highestSequence)

setType

public void setType(int type)

setWindowSize

public void setWindowSize(int newSize)

setWindowThreshold

public void setWindowThreshold(int newSize)

toString

public String toString()

writeExternal

public void writeExternal(ObjectOutput oo)
            throws IOException

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.