org.ow2.jonas.lib.management.domain.cluster.jk
Class JkClusterFactory
java.lang.Object
org.ow2.jonas.lib.management.domain.cluster.ClusterFactory
org.ow2.jonas.lib.management.domain.cluster.jk.JkClusterFactory
public class JkClusterFactory
- extends ClusterFactory
Factory for clusters used by Apache mod-JK
These Clusters are built dynamically, when a new server is discovered
as being part of a cluster of this type.
- Author:
- durieuxp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JkClusterFactory
public JkClusterFactory(DomainMonitor dm)
- Constructor
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 mod_jk worker.
getClusterList
public Collection 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 jk clusters.
- Specified by:
getMonitoringInfo
in class ClusterFactory
Copyright © 2010 OW2 Consortium. All Rights Reserved.