|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.management.server.AbstractManagedObject
com.caucho.cloud.network.ClusterServerAdmin
public class ClusterServerAdmin
Implementation of the ClusterServer's administration mbean.
Constructor Summary | |
---|---|
ClusterServerAdmin(ClusterServer server)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class com.caucho.management.server.AbstractManagedObject |
---|
addObjectNameProperties, getObjectName, 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 |
Constructor Detail |
---|
public ClusterServerAdmin(ClusterServer server)
Method Detail |
---|
public java.lang.String getName()
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String getType()
AbstractManagedObject
getType
in interface ManagedObjectMXBean
getType
in class AbstractManagedObject
public ClusterMXBean getCluster()
getCluster
in interface ClusterServerMXBean
public int getClusterIndex()
getClusterIndex
in interface ClusterServerMXBean
public java.lang.String getAddress()
getAddress
in interface ClusterServerMXBean
public int getPort()
getPort
in interface ClusterServerMXBean
public boolean isDynamicServer()
isDynamicServer
in interface ClusterServerMXBean
public boolean isTriadServer()
isTriadServer
in interface ClusterServerMXBean
public boolean isSelfServer()
isSelfServer
in interface ClusterServerMXBean
public long getRecoverTime()
getRecoverTime
in interface ClusterServerMXBean
public long getIdleTime()
getIdleTime
in interface ClusterServerMXBean
public int getConnectionMin()
getConnectionMin
in interface ClusterServerMXBean
public long getConnectTimeout()
getConnectTimeout
in interface ClusterServerMXBean
public long getSocketTimeout()
getSocketTimeout
in interface ClusterServerMXBean
public long getClusterIdleTime()
getClusterIdleTime
in interface ClusterServerMXBean
public long getWarmupTime()
getWarmupTime
in interface ClusterServerMXBean
public int getWeight()
getWeight
in interface ClusterServerMXBean
public java.lang.String getClusterState()
ClusterServerMXBean
getClusterState
in interface ClusterServerMXBean
public java.lang.String getLoadBalanceState()
ClusterServerMXBean
getLoadBalanceState
in interface ClusterServerMXBean
public boolean isHeartbeatActive()
isHeartbeatActive
in interface ClusterServerMXBean
public java.lang.String getHeartbeatState()
getHeartbeatState
in interface ClusterServerMXBean
public java.util.Date getLastHeartbeatTime()
getLastHeartbeatTime
in interface ClusterServerMXBean
public int getConnectionActiveCount()
ClusterServerMXBean
getConnectionActiveCount
in interface ClusterServerMXBean
public int getConnectionIdleCount()
ClusterServerMXBean
getConnectionIdleCount
in interface ClusterServerMXBean
public long getConnectionNewCountTotal()
ClusterServerMXBean
getConnectionNewCountTotal
in interface ClusterServerMXBean
public long getConnectionFailCountTotal()
ClusterServerMXBean
getConnectionFailCountTotal
in interface ClusterServerMXBean
public java.util.Date getLastFailTime()
ClusterServerMXBean
getLastFailTime
in interface ClusterServerMXBean
public java.util.Date getLastSuccessTime()
public double getLatencyFactor()
ClusterServerMXBean
getLatencyFactor
in interface ClusterServerMXBean
public long getConnectionBusyCountTotal()
ClusterServerMXBean
getConnectionBusyCountTotal
in interface ClusterServerMXBean
public java.util.Date getLastBusyTime()
ClusterServerMXBean
getLastBusyTime
in interface ClusterServerMXBean
public long getConnectionKeepaliveCountTotal()
ClusterServerMXBean
getConnectionKeepaliveCountTotal
in interface ClusterServerMXBean
public double getServerCpuLoadAvg()
ClusterServerMXBean
getServerCpuLoadAvg
in interface ClusterServerMXBean
public int getMessageQueueSize()
getMessageQueueSize
in interface ClusterServerMXBean
public int getMessageQueueLargeSize()
getMessageQueueLargeSize
in interface ClusterServerMXBean
public void start()
ClusterServerMXBean
start
in interface ClusterServerMXBean
public void stop()
ClusterServerMXBean
stop
in interface ClusterServerMXBean
public void enableSessionOnly()
ClusterServerMXBean
enableSessionOnly
in interface ClusterServerMXBean
public boolean ping()
ClusterServerMXBean
ping
in interface ClusterServerMXBean
public void removeDynamicServer()
removeDynamicServer
in interface ClusterServerMXBean
protected void register()
public java.lang.String toString()
toString
in class AbstractManagedObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |