org.objectweb.jonas.management.cluster
Class LogicalClusterFactory

java.lang.Object
  extended by org.objectweb.jonas.management.cluster.ClusterFactory
      extended by org.objectweb.jonas.management.cluster.LogicalClusterFactory

public class LogicalClusterFactory
extends ClusterFactory

Factory for logical clusters


Field Summary
 
Fields inherited from class org.objectweb.jonas.management.cluster.ClusterFactory
dm, domainName, jmx, logger, mbeanServer
 
Constructor Summary
LogicalClusterFactory(DomainMonitor dm)
           
 
Method Summary
 LogicalCluster createLogicalCluster(java.lang.String name)
          Create a logical cluster
 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 detected by the DomainManager.
 
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

LogicalClusterFactory

public LogicalClusterFactory(DomainMonitor dm)
Method Detail

getCluster

public BaseCluster getCluster(java.lang.String name)
Description copied from class: ClusterFactory
Look for a cluster by its name

Specified by:
getCluster in class ClusterFactory
Parameters:
name - fo the cluster
Returns:
The cluster or null if not found

notifyServer

public boolean notifyServer(ServerProxy proxy)
Description copied from class: ClusterFactory
A new Server has been detected by the DomainManager. Look if it can be added in a cluster. This cluster could be created if necessary.

Specified by:
notifyServer in class ClusterFactory
Parameters:
proxy - The new ServerProxy object just created.
Returns:
True if server was added in a Cluster.

getClusterList

public java.util.Collection getClusterList()
Specified by:
getClusterList in class ClusterFactory
Returns:
A list of all Clusters managed by this ClusterFactory

createLogicalCluster

public LogicalCluster createLogicalCluster(java.lang.String name)
Create a logical cluster