org.apache.geronimo.messaging.cluster
Class ClusterHBSender

java.lang.Object
  extended byorg.apache.geronimo.messaging.cluster.ClusterHBSender
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle

public class ClusterHBSender
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle

Node heartbeat sender.
Sends heartbeats for a given node, which is a member of a given cluster.

Version:
$Revision: 1.1 $ $Date: 2004/07/17 03:44:18 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ClusterHBSender(Node aNode, Cluster aCluster, org.apache.geronimo.pool.ClockPool aClockPool, long aDelay, org.apache.geronimo.gbean.GBeanLifecycleController aController)
          Creates a node heartbeat sender.
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

ClusterHBSender

public ClusterHBSender(Node aNode,
                       Cluster aCluster,
                       org.apache.geronimo.pool.ClockPool aClockPool,
                       long aDelay,
                       org.apache.geronimo.gbean.GBeanLifecycleController aController)
Creates a node heartbeat sender.

Parameters:
aNode - Node.
aCluster - Cluster to which this node is a member.
aClockPool - To execute periodical tasks.
aDelay - Number of milliseconds between two heartbeats.
aController - To control the lifecycle of this component.
Method Detail

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doStop

public void doStop()
            throws org.apache.geronimo.gbean.WaitingException,
                   Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.