org.objectweb.jonas.management.cluster
Class TomcatClusterFactory

java.lang.Object
  extended by org.objectweb.jonas.management.cluster.ClusterFactory
      extended by 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

Field Summary
 
Fields inherited from class org.objectweb.jonas.management.cluster.ClusterFactory
dm, domainName, jmx, logger, mbeanServer
 
Constructor Summary
TomcatClusterFactory(DomainMonitor dm)
          Constructor
 
Method Summary
 BaseCluster getCluster(java.lang.String name)
          Look for a cluster by its name
 java.util.Collection getClusterList()
           
 boolean notifyServer(ServerProxy proxy)
          A new server has been discovered.
 
Methods inherited from class org.objectweb.jonas.management.cluster.ClusterFactory
getDomainMonitor, getMBeanServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatClusterFactory

public TomcatClusterFactory(DomainMonitor dm)
Constructor

Method Detail

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