com.caucho.management.server
Interface ClusterMXBean

All Superinterfaces:
ManagedObjectMXBean
All Known Implementing Classes:
CloudClusterAdmin

public interface ClusterMXBean
extends ManagedObjectMXBean

A Cluster is a collection of cluster members, Each instance of Resin has 0 or 1 active srun ports and accept inbound connections, available here with #getPortObjectName. Every instance of Resin can use com.caucho.server.cluster.ClusterClients to establish outbound connections to other members of the cluster, available here with getServers(). A typical ObjectName for a ClusterMBean is

 resin:type=Cluster,name=app-tier
 


Method Summary
 void addDynamicServer(java.lang.String id, java.lang.String address, int port)
          Adds a new dynamic server to the cluster
 HostMXBean[] getHosts()
          Returns a list of the ObjectNames for the virtual hosts.
 PersistentStoreMXBean getPersistentStore()
          Returns the persistent-store ObjectName.
 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.
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getName, getObjectName, getType
 

Method Detail

getResin

ResinMXBean getResin()
Returns the owning ResinMXBean


getServers

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.


getHosts

HostMXBean[] getHosts()
Returns a list of the ObjectNames for the virtual hosts.


getPersistentStore

PersistentStoreMXBean getPersistentStore()
Returns the persistent-store ObjectName.


isDynamicServerEnable

boolean isDynamicServerEnable()
Returns true if this cluster supports adding dynamic servers.


addDynamicServer

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