|
||||||||||
| 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 |
ping()
Returns true if a connection can be made to the target server. |
protected void |
register()
|
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 ServerConnectorMXBeanpublic int getClusterIndex()
getClusterIndex in interface ServerConnectorMXBeanpublic java.lang.String getAddress()
getAddress in interface ServerConnectorMXBeanpublic int getPort()
getPort in interface ServerConnectorMXBeanpublic long getRecoverTime()
getRecoverTime in interface ServerConnectorMXBeanpublic long getIdleTime()
getIdleTime in interface ServerConnectorMXBeanpublic long getConnectTimeout()
getConnectTimeout in interface ServerConnectorMXBeanpublic long getSocketTimeout()
getSocketTimeout in interface ServerConnectorMXBeanpublic long getWarmupTime()
getWarmupTime in interface ServerConnectorMXBeanpublic int getWeight()
getWeight in interface ServerConnectorMXBeanpublic java.lang.String getState()
ServerConnectorMXBean
getState in interface ServerConnectorMXBeanpublic int getConnectionActiveCount()
ServerConnectorMXBean
getConnectionActiveCount in interface ServerConnectorMXBeanpublic int getConnectionIdleCount()
ServerConnectorMXBean
getConnectionIdleCount in interface ServerConnectorMXBeanpublic long getConnectionNewCountTotal()
ServerConnectorMXBean
getConnectionNewCountTotal in interface ServerConnectorMXBeanpublic long getConnectionFailCountTotal()
ServerConnectorMXBean
getConnectionFailCountTotal in interface ServerConnectorMXBeanpublic java.util.Date getLastFailTime()
ServerConnectorMXBean
getLastFailTime in interface ServerConnectorMXBeanpublic java.util.Date getLastSuccessTime()
public double getLatencyFactor()
ServerConnectorMXBean
getLatencyFactor in interface ServerConnectorMXBeanpublic long getConnectionBusyCountTotal()
ServerConnectorMXBean
getConnectionBusyCountTotal in interface ServerConnectorMXBeanpublic java.util.Date getLastBusyTime()
ServerConnectorMXBean
getLastBusyTime in interface ServerConnectorMXBeanpublic long getConnectionKeepaliveCountTotal()
ServerConnectorMXBean
getConnectionKeepaliveCountTotal in interface ServerConnectorMXBeanpublic double getServerCpuLoadAvg()
ServerConnectorMXBean
getServerCpuLoadAvg in interface ServerConnectorMXBeanpublic void start()
ServerConnectorMXBean
start in interface ServerConnectorMXBeanpublic void stop()
ServerConnectorMXBean
stop in interface ServerConnectorMXBeanpublic void enableSessionOnly()
ServerConnectorMXBean
enableSessionOnly in interface ServerConnectorMXBeanpublic boolean ping()
ServerConnectorMXBean
ping in interface ServerConnectorMXBeanprotected void register()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||