com.caucho.cloud.topology
Class CloudClusterAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.cloud.topology.CloudClusterAdmin
All Implemented Interfaces:
ClusterMXBean, ManagedObjectMXBean

public class CloudClusterAdmin
extends AbstractManagedObject
implements ClusterMXBean


Constructor Summary
CloudClusterAdmin(CloudCluster cluster)
           
 
Method Summary
 void addDynamicServer(java.lang.String id, java.lang.String address, int port)
          Adds a new dynamic server
 HostMXBean[] getHosts()
          Returns a list of the ObjectNames for the virtual hosts.
 java.lang.String getName()
          The JMX name property of the mbean.
 PersistentStoreMXBean getPersistentStore()
          Returns the persistent-store ObjectName.
 PortMXBean getPort()
           
 ResinMXBean getResin()
          Returns the owning ResinMXBean
 ClusterServerMXBean[] getServers()
          Returns a list of ObjectNames for the com.caucho.server.cluster.ClusterClients that are used to create outbound connections to communicate with members of the cluster.
 boolean isDynamicServerEnable()
          Returns true if this cluster supports adding dynamic servers.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

CloudClusterAdmin

public CloudClusterAdmin(CloudCluster cluster)
Method Detail

getName

public java.lang.String getName()
Description copied from class: AbstractManagedObject
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

getHosts

public HostMXBean[] getHosts()
Description copied from interface: ClusterMXBean
Returns a list of the ObjectNames for the virtual hosts.

Specified by:
getHosts in interface ClusterMXBean

getPort

public PortMXBean getPort()

getResin

public ResinMXBean getResin()
Description copied from interface: ClusterMXBean
Returns the owning ResinMXBean

Specified by:
getResin in interface ClusterMXBean

getPersistentStore

public PersistentStoreMXBean getPersistentStore()
Description copied from interface: ClusterMXBean
Returns the persistent-store ObjectName.

Specified by:
getPersistentStore in interface ClusterMXBean

getServers

public ClusterServerMXBean[] getServers()
Description copied from interface: ClusterMXBean
Returns a list of ObjectNames for the com.caucho.server.cluster.ClusterClients that are used to create outbound connections to communicate with members of the cluster.

Specified by:
getServers in interface ClusterMXBean

addDynamicServer

public void addDynamicServer(java.lang.String id,
                             java.lang.String address,
                             int port)
Adds a new dynamic server

Specified by:
addDynamicServer in interface ClusterMXBean

isDynamicServerEnable

public boolean isDynamicServerEnable()
Description copied from interface: ClusterMXBean
Returns true if this cluster supports adding dynamic servers.

Specified by:
isDynamicServerEnable in interface ClusterMXBean

toString

public java.lang.String toString()
Overrides:
toString in class AbstractManagedObject