|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.javagroups.stack.Protocol | +--org.javagroups.protocols.TOTAL_OLD
class TOTAL_OLD extends Protocol TODO: (more comments) Sequencer based total ordering protocol layer - requires the following layers "below" it in the stack (or layers with equivalent functionality): GMS, FD, PING, UDP, ...
Inner Class Summary | |
static class |
TOTAL_OLD.TotalHeader
class TotalHeader The header that is prepended to every message passed down through the TOTAL_OLD layer and removed (and processed) from every message passed up through the TOTAL_OLD layer |
Fields inherited from class org.javagroups.stack.Protocol |
down_handler, down_prot, down_queue, down_thread, observer, props, stack, up_handler, up_prot, up_queue, up_thread |
Constructor Summary | |
TOTAL_OLD()
|
Method Summary | |
void |
down(Event evt)
handles an Event coming down the Protocol Stack |
protected long |
getFirstQueuedSeqID()
returns the sequence id of the "first" queued message (i.e. |
protected Address |
getLocalAddr()
returns the Address of the local machine returns null if it is not known yet |
java.lang.String |
getName()
returns the unique name of this protocol |
protected long |
getNextSeqID()
returns the next sequence id expected to be received in this view |
protected Address |
getSequencer()
returns the address of the current sequencer of the group returns null if the list of members is empty |
void |
reset()
Just remove if you don't need to reset any state |
boolean |
setProperties(java.util.Properties props)
Configures the protocol initially. |
void |
up(Event evt)
handles an Event coming up the Protocol Stack |
Methods inherited from class org.javagroups.stack.Protocol |
getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, init, passDown, passUp, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, setDownProtocol, setObserver, setPropertiesInternal, setProtocolStack, setUpProtocol, startDownHandler, startUpHandler, stopInternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TOTAL_OLD()
Method Detail |
public java.lang.String getName()
getName
in class Protocol
public boolean setProperties(java.util.Properties props)
Protocol
"loopback=false;unicast_inport=4444"
setProperties
in class Protocol
public void reset()
protected long getNextSeqID()
protected long getFirstQueuedSeqID()
public void up(Event evt)
up
in class Protocol
public void down(Event evt)
down
in class Protocol
protected Address getLocalAddr()
protected Address getSequencer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |