dd.host.impl
Class HostHbStage

java.lang.Object
  |
  +--ostore.util.StandardStage
        |
        +--dd.host.impl.HostHbStage
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class HostHbStage
extends StandardStage
implements SingleThreadedEventHandlerIF

HostHbStage handles the logic that modifies the local information stored about a particular host in the system.

Version:
$Id: HostHbStage.java,v 1.10 2004/05/29 08:26:46 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
HostInfo, PtrMgr

Nested Class Summary
static class HostHbStage.DeadMail
          DeadMail is mail delivered to every node in the system carrying news that a node recently died.
static class HostHbStage.HostDbReq
          HostDbReq/HostHbStage.HostDbResp are used to tranfer the contents of the HostDb from an older leaf set member to a new node.
static class HostHbStage.HostDbResp
          HostHbStage.HostDbReq/HostDbResp are used to tranfer the contents of the HostDb from an older leaf set member to a new node.
static class HostHbStage.HostHb
          HostHb; that is, we are alive.
static class HostHbStage.Ping
          Ping another node to test if the node is alive.
static class HostHbStage.Pong
          Pong; that is, let another node know that we are alive.
 
Field Summary
 short _seq
          A sequence number to keep track of position of a HostDb transfer.
protected static long appId
          Unique identifier for this stage.
 
Fields inherited from class ostore.util.StandardStage
classifier, DEBUG, event_types, inb_msg_types, logger, my_node_id, my_sink, outb_msg_types, resender, resender_tokens, serializable_types, sim_running, tag
 
Constructor Summary
HostHbStage()
          Constructor: Creates a new HostHbStage stage.
 
Method Summary
 void dumpRevpointers(Map revs, int level)
          dumpRevpointers prints the specified level of the reverse pointers to standard error.
 void handleEvent(QueueElementIF item)
          Specified by seda.sandStorm.api.EventHandlerIF
 void init(ConfigDataIF config)
          Specified by seda.sandStorm.api.EventHandlerIF
 
Methods inherited from class ostore.util.StandardStage
BUG, BUG, BUG, destroy, dispatch, enqueue, handleEvents, now_ms, now_us
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appId

protected static final long appId
Unique identifier for this stage.


_seq

public short _seq
A sequence number to keep track of position of a HostDb transfer.

Constructor Detail

HostHbStage

public HostHbStage()
            throws Exception
Constructor: Creates a new HostHbStage stage.

Method Detail

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Specified by seda.sandStorm.api.EventHandlerIF

Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException

init

public void init(ConfigDataIF config)
          throws Exception
Specified by seda.sandStorm.api.EventHandlerIF

Specified by:
init in interface EventHandlerIF
Overrides:
init in class StandardStage
Exception

dumpRevpointers

public void dumpRevpointers(Map revs,
                            int level)
dumpRevpointers prints the specified level of the reverse pointers to standard error.

Parameters:
revs - reverse pointers.
level - Level of reverse pointers.