org.javagroups.protocols
Class TOTAL_OLD

java.lang.Object
  |
  +--org.javagroups.stack.Protocol
        |
        +--org.javagroups.protocols.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

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

TOTAL_OLD

public TOTAL_OLD()
Method Detail

getName

public java.lang.String getName()
returns the unique name of this protocol
Overrides:
getName in class Protocol

setProperties

public boolean setProperties(java.util.Properties props)
Description copied from class: Protocol
Configures the protocol initially. A configuration string consists of name=value items, separated by a ';' (semicolon), e.g.:
 "loopback=false;unicast_inport=4444"
 
Overrides:
setProperties in class Protocol

reset

public void reset()
Just remove if you don't need to reset any state

getNextSeqID

protected long getNextSeqID()
returns the next sequence id expected to be received in this view

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

up

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

down

public void down(Event evt)
handles an Event coming down the Protocol Stack
Overrides:
down in class Protocol

getLocalAddr

protected Address getLocalAddr()
returns the Address of the local machine returns null if it is not known yet

getSequencer

protected Address getSequencer()
returns the address of the current sequencer of the group returns null if the list of members is empty


Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.