| |
|
| java.lang.Object java.lang.Thread org.jgroups.stack.UpHandler org.jgroups.protocols.pbcast.STATE_TRANSFER
STATE_TRANSFER | public class STATE_TRANSFER extends Protocol (Code) | | 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 version: $Id: STATE_TRANSFER.java,v 1.44.2.3 2007/04/27 08:03:55 belaban Exp $ |
Inner Class :public static class StateHeader extends Header implements Streamable | |
avg_state_size | double avg_state_size(Code) | | |
flushProtocolInStack | boolean flushProtocolInStack(Code) | | |
flush_timeout | long flush_timeout(Code) | | |
num_bytes_sent | long num_bytes_sent(Code) | | |
num_state_reqs | int num_state_reqs(Code) | | |
startstop | long startstop(Code) | | |
state_requesters | final Map state_requesters(Code) | | Map of state requesters. Keys are state IDs, values are Sets of Addresses (one for each requester)
|
use_flush | boolean use_flush(Code) | | |
waiting_for_state_response | boolean waiting_for_state_response(Code) | | set to true while waiting for a STATE_RSP
|
getAverageStateSize | public double getAverageStateSize()(Code) | | |
getName | public String getName()(Code) | | All protocol names have to be unique !
|
getNumberOfStateBytesSent | public long getNumberOfStateBytesSent()(Code) | | |
getNumberOfStateRequests | public int getNumberOfStateRequests()(Code) | | |
handleStateRsp | void handleStateRsp(StateHeader hdr, byte[] state)(Code) | | Set the digest and the send the state up to the application
|
requiredDownServices | public Vector requiredDownServices()(Code) | | |
resetStats | public void resetStats()(Code) | | |
Fields inherited from org.jgroups.stack.UpHandler | final protected Log log(Code)(Java Doc)
|
|
|
|