public class ClusterServerAdmin extends AbstractManagedObject implements ClusterServerMXBean
| Constructor and Description |
|---|
ClusterServerAdmin(ClusterServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
enableSessionOnly()
Enables connections to the target server.
|
java.lang.String |
getAddress()
Returns the server's IP address.
|
ClusterMXBean |
getCluster()
Returns the owning cluster's object name.
|
long |
getClusterIdleTime()
Returns the socket timeout for a client.
|
int |
getClusterIndex()
Returns the cluster index.
|
java.lang.String |
getClusterState()
Returns the lifecycle state as a cluster server.
|
int |
getConnectionActiveCount()
Returns the number of connections actively being used to communicate with
the target server.
|
long |
getConnectionBusyCountTotal()
Returns the number of connections which resulted in a busy
response.
|
long |
getConnectionFailCountTotal()
Returns the number of connections which could not connect
to the target server.
|
int |
getConnectionIdleCount()
Returns the number of open but currently unused connections to the
target server.
|
long |
getConnectionKeepaliveCountTotal()
Returns the number of connections that have been made to the target server.
|
int |
getConnectionMin()
Returns the green load-balancing connection minimum
|
long |
getConnectionNewCountTotal()
Returns the number of connections that have been made to the target server.
|
long |
getConnectTimeout()
Returns the connect timeout for a client.
|
java.lang.String |
getHeartbeatState() |
long |
getIdleTime()
Returns the maximum time a socket can remain idle in the pool.
|
java.util.Date |
getLastBusyTime()
Returns the last time of the busy response.
|
java.util.Date |
getLastFailTime()
Returns the time of the last failure.
|
java.util.Date |
getLastHeartbeatTime() |
java.util.Date |
getLastSuccessTime() |
double |
getLatencyFactor()
Returns the server's latency factory
|
java.lang.String |
getLoadBalanceState()
Returns the load balance state.
|
int |
getMessageQueueLargeSize() |
int |
getMessageQueueSize() |
java.lang.String |
getName()
Returns the -server id.
|
int |
getPort()
Returns the server's port.
|
long |
getRecoverTime()
Returns the time the client will consider the connection dead
before retrying.
|
double |
getServerCpuLoadAvg()
Returns the server's load average.
|
long |
getSocketTimeout()
Returns the socket timeout for a client.
|
java.lang.String |
getType()
The JMX type of this MBean, defaults to the prefix of the FooMXBean..
|
long |
getWarmupTime()
Returns the warmup time in milliseconds.
|
int |
getWeight()
Returns the load-balance weight.
|
boolean |
isDynamicServer()
Returns true for a dynamic server
|
boolean |
isHeartbeatActive() |
boolean |
isSelfServer()
Returns true for the self server
|
boolean |
isTriadServer()
Returns true for a triad server
|
boolean |
ping()
Returns true if a connection can be made to the target server.
|
protected void |
register() |
void |
removeDynamicServer()
Remove the server as a dynamic server
|
void |
start()
Enables connections to the target server.
|
void |
stop()
Disables connections to the target server.
|
java.lang.String |
toString() |
addObjectNameProperties, getObjectName, registerSelf, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectNamepublic ClusterServerAdmin(ClusterServer server)
public java.lang.String getName()
getName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic java.lang.String getType()
AbstractManagedObjectgetType in interface ManagedObjectMXBeangetType in class AbstractManagedObjectpublic ClusterMXBean getCluster()
getCluster in interface ClusterServerMXBeanpublic int getClusterIndex()
getClusterIndex in interface ClusterServerMXBeanpublic java.lang.String getAddress()
getAddress in interface ClusterServerMXBeanpublic int getPort()
getPort in interface ClusterServerMXBeanpublic boolean isDynamicServer()
isDynamicServer in interface ClusterServerMXBeanpublic boolean isTriadServer()
isTriadServer in interface ClusterServerMXBeanpublic boolean isSelfServer()
isSelfServer in interface ClusterServerMXBeanpublic long getRecoverTime()
getRecoverTime in interface ClusterServerMXBeanpublic long getIdleTime()
getIdleTime in interface ClusterServerMXBeanpublic int getConnectionMin()
getConnectionMin in interface ClusterServerMXBeanpublic long getConnectTimeout()
getConnectTimeout in interface ClusterServerMXBeanpublic long getSocketTimeout()
getSocketTimeout in interface ClusterServerMXBeanpublic long getClusterIdleTime()
getClusterIdleTime in interface ClusterServerMXBeanpublic long getWarmupTime()
getWarmupTime in interface ClusterServerMXBeanpublic int getWeight()
getWeight in interface ClusterServerMXBeanpublic java.lang.String getClusterState()
ClusterServerMXBeangetClusterState in interface ClusterServerMXBeanpublic java.lang.String getLoadBalanceState()
ClusterServerMXBeangetLoadBalanceState in interface ClusterServerMXBeanpublic boolean isHeartbeatActive()
isHeartbeatActive in interface ClusterServerMXBeanpublic java.lang.String getHeartbeatState()
getHeartbeatState in interface ClusterServerMXBeanpublic java.util.Date getLastHeartbeatTime()
getLastHeartbeatTime in interface ClusterServerMXBeanpublic int getConnectionActiveCount()
ClusterServerMXBeangetConnectionActiveCount in interface ClusterServerMXBeanpublic int getConnectionIdleCount()
ClusterServerMXBeangetConnectionIdleCount in interface ClusterServerMXBeanpublic long getConnectionNewCountTotal()
ClusterServerMXBeangetConnectionNewCountTotal in interface ClusterServerMXBeanpublic long getConnectionFailCountTotal()
ClusterServerMXBeangetConnectionFailCountTotal in interface ClusterServerMXBeanpublic java.util.Date getLastFailTime()
ClusterServerMXBeangetLastFailTime in interface ClusterServerMXBeanpublic java.util.Date getLastSuccessTime()
public double getLatencyFactor()
ClusterServerMXBeangetLatencyFactor in interface ClusterServerMXBeanpublic long getConnectionBusyCountTotal()
ClusterServerMXBeangetConnectionBusyCountTotal in interface ClusterServerMXBeanpublic java.util.Date getLastBusyTime()
ClusterServerMXBeangetLastBusyTime in interface ClusterServerMXBeanpublic long getConnectionKeepaliveCountTotal()
ClusterServerMXBeangetConnectionKeepaliveCountTotal in interface ClusterServerMXBeanpublic double getServerCpuLoadAvg()
ClusterServerMXBeangetServerCpuLoadAvg in interface ClusterServerMXBeanpublic int getMessageQueueSize()
getMessageQueueSize in interface ClusterServerMXBeanpublic int getMessageQueueLargeSize()
getMessageQueueLargeSize in interface ClusterServerMXBeanpublic void start()
ClusterServerMXBeanstart in interface ClusterServerMXBeanpublic void stop()
ClusterServerMXBeanstop in interface ClusterServerMXBeanpublic void enableSessionOnly()
ClusterServerMXBeanenableSessionOnly in interface ClusterServerMXBeanpublic boolean ping()
ClusterServerMXBeanping in interface ClusterServerMXBeanpublic void removeDynamicServer()
removeDynamicServer in interface ClusterServerMXBeanprotected void register()
public java.lang.String toString()
toString in class AbstractManagedObject