org.jgroups.protocols
Class 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, ...
- Manish Sambhu mms21@cornell.edu Spring 1999
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
|
down_handler , down_prot , down_queue , down_thread , down_thread_prio , log , observer , props , stack , up_handler , up_prot , up_queue , up_thread , up_thread_prio |
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
|
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
|
void | start()
|
void | stop()
|
void | up(Event evt) - handles an Event coming up the Protocol Stack
|
destroy , down , getDownProtocol , getDownQueue , getName , getProperties , getUpProtocol , getUpQueue , handleSpecialDownEvent , init , passDown , passUp , providedDownServices , providedUpServices , receiveDownEvent , receiveUpEvent , requiredDownServices , requiredUpServices , setDownProtocol , setObserver , setProperties , setPropertiesInternal , setProtocolStack , setUpProtocol , start , startDownHandler , startUpHandler , stop , stopInternal , up |
down
public void down(Event evt)
handles an Event coming down the Protocol Stack
- down in interface Protocol
getFirstQueuedSeqID
protected long getFirstQueuedSeqID()
returns the sequence id of the "first" queued message
(i.e. the lowest seq id queued)
returns -1 if no messages are queued
getLocalAddr
protected Address getLocalAddr()
returns the Address of the local machine
returns null if it is not known yet
getName
public String getName()
returns the unique name of this protocol
- getName in interface Protocol
getNextSeqID
protected long getNextSeqID()
returns the next sequence id expected to be received in this view
getSequencer
protected Address getSequencer()
returns the address of the current sequencer of the group
returns null if the list of members is empty
reset
public void reset()
Just remove if you don't need to reset any state
start
public void start()
throws Exception
- start in interface Protocol
up
public void up(Event evt)
handles an Event coming up the Protocol Stack
- up in interface Protocol
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.