org.jgroups.protocols

Class TOTAL_OLD


public class TOTAL_OLD
extends Protocol

************************************************************************** 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, ...

Author:
Manish Sambhu mms21@cornell.edu Spring 1999

Nested 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

Field Summary

Fields inherited from class org.jgroups.stack.Protocol

down_handler, down_prot, down_queue, down_thread, down_thread_prio, log, observer, props, stack, stats, trace, up_handler, up_prot, up_queue, up_thread, up_thread_prio, warn

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., the lowest seq id queued).
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()
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

Methods inherited from class org.jgroups.stack.Protocol

destroy, down, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getDownQueue, getName, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, init, isTrace, isWarn, passDown, passUp, printStats, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setObserver, setProperties, setPropertiesInternal, setProtocolStack, setTrace, setUpProtocol, setWarn, start, startDownHandler, startUpHandler, statsEnabled, stop, stopInternal, up, upThreadEnabled

Method Details

down

public void down(Event evt)
handles an Event coming down the Protocol Stack
Overrides:
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:
the sequence id of the queued message, or -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
Overrides:
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
Overrides:
start in interface Protocol

stop

public void stop()
Overrides:
stop in interface Protocol

up

public void up(Event evt)
handles an Event coming up the Protocol Stack
Overrides:
up in interface Protocol

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.