org.ow2.jonas.lib.management.domain.cluster.cmi
Class CmiClusterFactory

java.lang.Object
  extended by org.ow2.jonas.lib.management.domain.cluster.ClusterFactory
      extended by org.ow2.jonas.lib.management.domain.cluster.cmi.CmiClusterFactory

public class CmiClusterFactory
extends ClusterFactory

Factory for CMI clusters 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.ow2.jonas.lib.management.domain.cluster.ClusterFactory
dm, domainName, logger, mbeanServer
 
Constructor Summary
CmiClusterFactory(DomainMonitor dm)
          Constructor
 
Method Summary
 BaseCluster getCluster(String name)
          Look for a cluster by its name
 Collection<CmiCluster> getClusterList()
           
 void getMonitoringInfo()
          Update dynamic info for all the cmi clusters.
 boolean notifyServer(ServerProxy proxy)
          A new server has been discovered.
 
Methods inherited from class org.ow2.jonas.lib.management.domain.cluster.ClusterFactory
getDomainMonitor, getMBeanServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmiClusterFactory

public CmiClusterFactory(DomainMonitor dm)
Constructor

Method Detail

getCluster

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

getMonitoringInfo

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

Specified by:
getMonitoringInfo in class ClusterFactory


Copyright © 2010 OW2 Consortium. All Rights Reserved.