org.jgroups.protocols

Class STATE_TRANSFER

public class STATE_TRANSFER extends Protocol implements RequestHandler

State transfer layer. Upon receiving a GET_STATE event from JChannel, a MAKE_COPY message is sent to all members. When the originator receives MAKE_COPY, it queues all messages to the channel. When another member receives the message, it asks the JChannel to provide it with a copy of the current state (GetStateEvent is received by application, returnState() sends state down the stack). Then the current layer sends a unicast RETURN_STATE message to the coordinator, which returns the cached copy. When the state is received by the originator, the GET_STATE sender is unblocked with a GET_STATE_OK event up the stack (unless it already timed out).

Requires QUEUE layer on top.

Author: Bela Ban

Method Summary
voiddown(Event evt)
StringgetName()
All protocol names have to be unique !
Objecthandle(Message msg)
voidinit()
VectorrequiredUpServices()
booleansetProperties(Properties props)
voidstart()
voidstop()
voidup(Event evt)

Method Detail

down

public void down(Event evt)

getName

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

handle

public Object handle(Message msg)

init

public void init()

requiredUpServices

public Vector requiredUpServices()

setProperties

public boolean setProperties(Properties props)

start

public void start()

stop

public void stop()

up

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