org.ow2.jonas.lib.management.domain.cluster.logical
Class LogicalClusterFactory

java.lang.Object
  extended by org.ow2.jonas.lib.management.domain.cluster.ClusterFactory
      extended by org.ow2.jonas.lib.management.domain.cluster.logical.LogicalClusterFactory

public class LogicalClusterFactory
extends ClusterFactory

Factory for logical clusters.


Field Summary
 
Fields inherited from class org.ow2.jonas.lib.management.domain.cluster.ClusterFactory
dm, domainName, logger, mbeanServer
 
Constructor Summary
LogicalClusterFactory(DomainMonitor dm)
          Constructor for a LogicalClusterFactory.
 
Method Summary
 LogicalCluster createLogicalCluster(String name)
          Create a logical cluster.
 BaseCluster getCluster(String name)
          Look for a cluster by its name.
 Collection<BaseCluster> getClusterList()
           
 void getMonitoringInfo()
          Update dynamic info for all the ha clusters.
 boolean notifyServer(ServerProxy proxy)
          Treat event corresponding to a new ServerProxyy (new server arriving in the domain).
 
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

LogicalClusterFactory

public LogicalClusterFactory(DomainMonitor dm)
Constructor for a LogicalClusterFactory.

Parameters:
dm - Reference to the DomainMonitor
Method Detail

getCluster

public BaseCluster getCluster(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 corresponding cluster object.

getClusterList

public Collection<BaseCluster> getClusterList()
Specified by:
getClusterList in class ClusterFactory
Returns:
A list of all Clusters managed by this ClusterFactory

notifyServer

public boolean notifyServer(ServerProxy proxy)
Treat event corresponding to a new ServerProxyy (new server arriving in the domain). Add the ServerProxy to the domain's LogicalCluster.

Specified by:
notifyServer in class ClusterFactory
Parameters:
proxy - ServerProxy that has been detected
Returns:
true if

createLogicalCluster

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

Parameters:
name - the cluster name.
Returns:
LogicalCluster reference.

getMonitoringInfo

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

Specified by:
getMonitoringInfo in class ClusterFactory


Copyright © 2010 OW2 Consortium. All Rights Reserved.