org.objectweb.jonas.management.cluster
Class TomcatClusterFactory
java.lang.Object
org.objectweb.jonas.management.cluster.ClusterFactory
org.objectweb.jonas.management.cluster.TomcatClusterFactory
public class TomcatClusterFactory
- extends ClusterFactory
Factory for clusters used by Tomact for Session Replication
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 |
TomcatClusterFactory
public TomcatClusterFactory(DomainMonitor dm)
- Constructor
getCluster
public BaseCluster getCluster(java.lang.String name)
- Look for a cluster by its name
- Specified by:
getCluster
in class ClusterFactory
- Parameters:
name
- fo 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 java.util.Collection getClusterList()
- Specified by:
getClusterList
in class ClusterFactory
- Returns:
- A list of all Clusters managed by this ClusterFactory