org.ow2.jonas.lib.management.domain.cluster.ha
Class EjbHaClusterFactory
java.lang.Object
org.ow2.jonas.lib.management.domain.cluster.ClusterFactory
org.ow2.jonas.lib.management.domain.cluster.ha.EjbHaClusterFactory
public class EjbHaClusterFactory
- extends ClusterFactory
Factory for HA clusters
These Clusters are built dynamically, when a new server is discovered
as being part of a cluster of this type.
- Author:
- durieuxp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EjbHaClusterFactory
public EjbHaClusterFactory(DomainMonitor dm)
- Constructor
getCluster
public BaseCluster getCluster(String name)
- Look for a cluster by its name
- Specified by:
getCluster
in class ClusterFactory
- Parameters:
name
- for the cluster
- Returns:
- cluster or null if not found
notifyServer
public boolean notifyServer(ServerProxy proxy)
- A new server has been discovered.
In case this server is recognized, it is added in a Cluster.
If not, nothing is done.
- Specified by:
notifyServer
in class ClusterFactory
- Parameters:
proxy
- The new ServerProxy
- Returns:
- True if recognized as a tomcat server.
getClusterList
public Collection getClusterList()
- Specified by:
getClusterList
in class ClusterFactory
- Returns:
- A list of all Clusters managed by this ClusterFactory
getMonitoringInfo
public void getMonitoringInfo()
- Update dynamic info for all the ha clusters.
- Specified by:
getMonitoringInfo
in class ClusterFactory
Copyright © 2010 OW2 Consortium. All Rights Reserved.