public interface ClusterServerMXBean extends ManagedObjectMXBean
resin:type=ClusterServer,name=web-a
Modifier and Type | Method and Description |
---|---|
void |
enableSessionOnly()
Enables connections to the target server.
|
java.lang.String |
getAddress()
Returns the ip address or host name of the server.
|
ClusterMXBean |
getCluster()
The containing cluster.
|
long |
getClusterIdleTime()
Returns the timeout for an idle socket that is connected to the target
server.
|
int |
getClusterIndex()
The cluster index of the server.
|
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()
The minimum number of connections for green load balancing.
|
long |
getConnectionNewCountTotal()
Returns the number of connections that have been made to the target server.
|
long |
getConnectTimeout()
The timeout in milliseconds for connecting to the server.
|
java.lang.String |
getHeartbeatState() |
long |
getIdleTime()
Returns the timeout for an idle socket that is connected to the target
server.
|
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() |
double |
getLatencyFactor()
Returns the server's latency factory
|
java.lang.String |
getLoadBalanceState()
Returns the load balance state.
|
int |
getMessageQueueLargeSize() |
int |
getMessageQueueSize() |
int |
getPort()
Returns the resin/admin port number of the server.
|
long |
getRecoverTime()
Returns the timeout for assuming a target server remains unavailable once
a connection attempt fails.
|
double |
getServerCpuLoadAvg()
Returns the server's load average.
|
long |
getSocketTimeout()
Returns the timeout to use for reads when communicating with
the target server.
|
long |
getWarmupTime()
Returns the warmup time in milliseconds.
|
int |
getWeight()
Returns the load-balancer weight, defaulting to 100.
|
boolean |
isDynamicServer()
Returns true if this is a dynamic server
|
boolean |
isHeartbeatActive() |
boolean |
isSelfServer()
Returns true for the server's own ClusterServer
|
boolean |
isTriadServer()
Returns true if this is a triad server
|
boolean |
ping()
Returns true if a connection can be made to the target server.
|
void |
removeDynamicServer()
Remove this server as a dynamic server
|
void |
start()
Enables connections to the target server.
|
void |
stop()
Disables connections to the target server.
|
getName, getObjectName, getType
ClusterMXBean getCluster()
int getClusterIndex()
java.lang.String getAddress()
int getPort()
boolean isDynamicServer()
boolean isTriadServer()
boolean isSelfServer()
@Units(value="milliseconds") long getConnectTimeout()
int getConnectionMin()
@Units(value="milliseconds") long getRecoverTime()
@Units(value="milliseconds") long getIdleTime()
@Units(value="milliseconds") long getSocketTimeout()
@Units(value="milliseconds") long getWarmupTime()
int getWeight()
@Units(value="milliseconds") long getClusterIdleTime()
java.lang.String getClusterState()
java.lang.String getLoadBalanceState()
boolean isHeartbeatActive()
java.lang.String getHeartbeatState()
java.util.Date getLastHeartbeatTime()
int getConnectionActiveCount()
int getConnectionIdleCount()
long getConnectionNewCountTotal()
long getConnectionKeepaliveCountTotal()
long getConnectionFailCountTotal()
java.util.Date getLastFailTime()
long getConnectionBusyCountTotal()
java.util.Date getLastBusyTime()
double getServerCpuLoadAvg()
double getLatencyFactor()
int getMessageQueueSize()
int getMessageQueueLargeSize()
void start()
void enableSessionOnly()
void stop()
void removeDynamicServer()
boolean ping()