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
public void down(
Event evt)
public String getName()
All protocol names have to be unique !
public void init()
public Vector requiredUpServices()
public boolean setProperties(Properties props)
public void start()
public void stop()
public void up(
Event evt)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.