org.jgroups.protocols.pbcast

Class STATE_TRANSFER

public class STATE_TRANSFER extends Protocol

New STATE_TRANSFER protocol based on PBCAST. Compared to the one in ./protocols, it doesn't need a QUEUE layer above it. A state request is sent to a chosen member (coordinator if null). That member makes a copy D of its current digest and asks the application for a copy of its current state S. Then the member returns both S and D to the requester. The requester first sets its digest to D and then returns the state to the application.

Author: Bela Ban

Nested Class Summary
static classSTATE_TRANSFER.StateHeader
Wraps data for a state request/response.
Method Summary
voiddown(Event evt)
doublegetAverageStateSize()
StringgetName()
All protocol names have to be unique !
longgetNumberOfStateBytesSent()
intgetNumberOfStateRequests()
voidinit()
VectorrequiredDownServices()
voidresetStats()
booleansetProperties(Properties props)
voidstart()
voidup(Event evt)

Method Detail

down

public void down(Event evt)

getAverageStateSize

public double getAverageStateSize()

getName

public String getName()
All protocol names have to be unique !

getNumberOfStateBytesSent

public long getNumberOfStateBytesSent()

getNumberOfStateRequests

public int getNumberOfStateRequests()

init

public void init()

requiredDownServices

public Vector requiredDownServices()

resetStats

public void resetStats()

setProperties

public boolean setProperties(Properties props)

start

public void start()

up

public void up(Event evt)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.