org.apache.geronimo.clustering.wadi
Class BasicWADICluster

java.lang.Object
  extended by org.apache.geronimo.clustering.wadi.BasicWADICluster
All Implemented Interfaces:
Cluster, WADICluster, GBeanLifecycle

public class BasicWADICluster
extends Object
implements GBeanLifecycle, WADICluster

Version:
$Rev$ $Date$

Nested Class Summary
protected  class BasicWADICluster.GeronimoClusterListenerAdaptor
           
 
Field Summary
static String GBEAN_REF_DISPATCHER_HOLDER
           
static String GBEAN_REF_NODE
           
 
Constructor Summary
BasicWADICluster(Node node, DispatcherHolder dispatcherHolder)
           
BasicWADICluster(Node node, DispatcherHolder dispatcherHolder, NodeFactory nodeFactory)
           
 
Method Summary
 void addClusterListener(ClusterListener listener)
           
protected  void clearListeners()
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 org.codehaus.wadi.group.Cluster getCluster()
           
 Node getLocalNode()
           
 String getName()
           
 Set<Node> getRemoteNodes()
           
protected  Node newRemoteNode(org.codehaus.wadi.group.Peer peer)
           
 void removeClusterListener(ClusterListener listener)
           
protected  Set<Node> wrapAsNode(Collection<org.codehaus.wadi.group.Peer> peers)
           
protected  Node wrapAsNode(org.codehaus.wadi.group.Peer peer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_REF_NODE

public static final String GBEAN_REF_NODE
See Also:
Constant Field Values

GBEAN_REF_DISPATCHER_HOLDER

public static final String GBEAN_REF_DISPATCHER_HOLDER
See Also:
Constant Field Values
Constructor Detail

BasicWADICluster

public BasicWADICluster(@ParamReference(name="Node")
                        Node node,
                        @ParamReference(name="DispatcherHolder")
                        DispatcherHolder dispatcherHolder)

BasicWADICluster

public BasicWADICluster(Node node,
                        DispatcherHolder dispatcherHolder,
                        NodeFactory nodeFactory)
Method Detail

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

getCluster

public org.codehaus.wadi.group.Cluster getCluster()
Specified by:
getCluster in interface WADICluster

getName

public String getName()
Specified by:
getName in interface Cluster

getLocalNode

public Node getLocalNode()
Specified by:
getLocalNode in interface Cluster

getRemoteNodes

public Set<Node> getRemoteNodes()
Specified by:
getRemoteNodes in interface Cluster

addClusterListener

public void addClusterListener(ClusterListener listener)
Specified by:
addClusterListener in interface Cluster

removeClusterListener

public void removeClusterListener(ClusterListener listener)
Specified by:
removeClusterListener in interface Cluster

clearListeners

protected void clearListeners()

wrapAsNode

protected Set<Node> wrapAsNode(Collection<org.codehaus.wadi.group.Peer> peers)

wrapAsNode

protected Node wrapAsNode(org.codehaus.wadi.group.Peer peer)

newRemoteNode

protected Node newRemoteNode(org.codehaus.wadi.group.Peer peer)


Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.