|
||||||||||
| 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.server.cluster.ServerConnectorAdmin
public class ServerConnectorAdmin
Implementation of the ClusterClient's administration mbean.
| Constructor Summary | |
|---|---|
ServerConnectorAdmin(ServerConnector client)
|
|
| 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. |
int |
getClusterIndex()
Returns the cluster index. |
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. |
long |
getConnectionNewCountTotal()
Returns the number of connections that have been made to the target server. |
long |
getConnectTimeout()
Returns the connect timeout for a client. |
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 |
getLastSuccessTime()
|
double |
getLatencyFactor()
Returns the server's latency factory |
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 |
getState()
Returns the lifecycle state. |
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 |
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 ServerConnectorAdmin(ServerConnector client)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic java.lang.String getType()
AbstractManagedObject
getType 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 long getRecoverTime()
getRecoverTime in interface ClusterServerMXBeanpublic long getIdleTime()
getIdleTime in interface ClusterServerMXBeanpublic long getConnectTimeout()
getConnectTimeout in interface ClusterServerMXBeanpublic long getSocketTimeout()
getSocketTimeout in interface ClusterServerMXBeanpublic long getWarmupTime()
getWarmupTime in interface ClusterServerMXBeanpublic int getWeight()
getWeight in interface ClusterServerMXBeanpublic java.lang.String getState()
ClusterServerMXBean
getState in interface ClusterServerMXBeanpublic int getConnectionActiveCount()
ClusterServerMXBean
getConnectionActiveCount in interface ClusterServerMXBeanpublic int getConnectionIdleCount()
ClusterServerMXBean
getConnectionIdleCount in interface ClusterServerMXBeanpublic long getConnectionNewCountTotal()
ClusterServerMXBean
getConnectionNewCountTotal in interface ClusterServerMXBeanpublic long getConnectionFailCountTotal()
ClusterServerMXBean
getConnectionFailCountTotal in interface ClusterServerMXBeanpublic java.util.Date getLastFailTime()
ClusterServerMXBean
getLastFailTime in interface ClusterServerMXBeanpublic java.util.Date getLastSuccessTime()
public double getLatencyFactor()
ClusterServerMXBean
getLatencyFactor in interface ClusterServerMXBeanpublic long getConnectionBusyCountTotal()
ClusterServerMXBean
getConnectionBusyCountTotal in interface ClusterServerMXBeanpublic java.util.Date getLastBusyTime()
ClusterServerMXBean
getLastBusyTime in interface ClusterServerMXBeanpublic long getConnectionKeepaliveCountTotal()
ClusterServerMXBean
getConnectionKeepaliveCountTotal in interface ClusterServerMXBeanpublic double getServerCpuLoadAvg()
ClusterServerMXBean
getServerCpuLoadAvg in interface ClusterServerMXBeanpublic void start()
ClusterServerMXBean
start in interface ClusterServerMXBeanpublic void stop()
ClusterServerMXBean
stop in interface ClusterServerMXBeanpublic void enableSessionOnly()
ClusterServerMXBean
enableSessionOnly in interface ClusterServerMXBeanpublic boolean ping()
ClusterServerMXBean
ping in interface ClusterServerMXBeanpublic void removeDynamicServer()
removeDynamicServer in interface ClusterServerMXBeanprotected 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 | |||||||||