org.objectweb.jonas.management.cluster
Class ClusterFactory

java.lang.Object
  extended by org.objectweb.jonas.management.cluster.ClusterFactory
Direct Known Subclasses:
CmiClusterFactory, EjbHaClusterFactory, JkClusterFactory, LogicalClusterFactory, TomcatClusterFactory

public abstract class ClusterFactory
extends java.lang.Object

Factory for Cluster

Author:
durieuxp

Field Summary
protected  DomainMonitor dm
          ref to the DomainMonitor
protected  java.lang.String domainName
          Domain name
protected  JmxService jmx
          ref to the Jmx Service
protected static org.objectweb.util.monolog.api.Logger logger
          logger for traces
protected  javax.management.MBeanServer mbeanServer
          The MBeanServer used for registering new MBeans
 
Constructor Summary
ClusterFactory(DomainMonitor dm)
           
 
Method Summary
abstract  BaseCluster getCluster(java.lang.String name)
          Look for a cluster by its name
abstract  java.util.Collection getClusterList()
           
 DomainMonitor getDomainMonitor()
           
 javax.management.MBeanServer getMBeanServer()
           
abstract  boolean notifyServer(ServerProxy proxy)
          A new Server has been detected by the DomainManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.objectweb.util.monolog.api.Logger logger
logger for traces


jmx

protected JmxService jmx
ref to the Jmx Service


mbeanServer

protected javax.management.MBeanServer mbeanServer
The MBeanServer used for registering new MBeans


dm

protected DomainMonitor dm
ref to the DomainMonitor


domainName

protected java.lang.String domainName
Domain name

Constructor Detail

ClusterFactory

public ClusterFactory(DomainMonitor dm)
Method Detail

notifyServer

public abstract boolean notifyServer(ServerProxy proxy)
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.

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

getDomainMonitor

public DomainMonitor getDomainMonitor()
Returns:
a reference to the DomainMonitor

getMBeanServer

public javax.management.MBeanServer getMBeanServer()
Returns:
The MBeanServer used to register MBeans

getCluster

public abstract BaseCluster getCluster(java.lang.String name)
Look for a cluster by its name

Parameters:
name - fo the cluster
Returns:
The cluster or null if not found

getClusterList

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