org.ow2.jonas.lib.management.domain.cluster
Class ClusterFactory

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

public abstract class ClusterFactory
extends Object

Factory for any Cluster.

Author:
durieuxp

Field Summary
protected  DomainMonitor dm
          Reference to the DomainMonitor.
protected  String domainName
          Domain name.
protected static org.objectweb.util.monolog.api.Logger logger
          logger for traces
protected  MBeanServer mbeanServer
          The MBeanServer used for registering new MBeans.
 
Constructor Summary
ClusterFactory(DomainMonitor dm)
           
 
Method Summary
abstract  BaseCluster getCluster(String name)
          Look for a cluster by its name.
abstract  Collection getClusterList()
           
 DomainMonitor getDomainMonitor()
           
 MBeanServer getMBeanServer()
           
abstract  void getMonitoringInfo()
          Update dynamic info for all the clusters.
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


mbeanServer

protected MBeanServer mbeanServer
The MBeanServer used for registering new MBeans.


dm

protected DomainMonitor dm
Reference to the DomainMonitor.


domainName

protected 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 MBeanServer getMBeanServer()
Returns:
The MBeanServer used to register MBeans

getCluster

public abstract BaseCluster getCluster(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 Collection getClusterList()
Returns:
A list of all Clusters managed by this ClusterFactory

getMonitoringInfo

public abstract void getMonitoringInfo()
Update dynamic info for all the clusters.



Copyright © 2010 OW2 Consortium. All Rights Reserved.