com.caucho.management.server
Interface ServerMXBean

All Superinterfaces:
ManagedObjectMXBean
All Known Implementing Classes:
ServerAdmin

public interface ServerMXBean
extends ManagedObjectMXBean

Management interface for the server. Each server corresponds to a JVM instance running Resin.

Since exactly on ServerMBean is running at a time it has a unique mbean name,

 resin:type=Server
 


Method Summary
 long getClientDisconnectCountTotal()
          The total number of connections that have terminated with ClientDisconnectException.
 ClusterMXBean getCluster()
          Returns the cluster owning this server
 PortMXBean getClusterPort()
          Returns the cluster port
 double getCpuLoadAvg()
          Returns the current CPU load average.
 java.util.Date getCurrentTime()
          Returns the current time according to the server.
 java.lang.String getId()
          Returns the -server id.
 long getInvocationCacheHitCountTotal()
          Returns the invocation cache hit count.
 long getInvocationCacheMissCountTotal()
          Returns the invocation cache miss count.
 long getKeepaliveCountTotal()
          Returns the number of requests that have ended up in the keepalive state for this server in it's lifetime.
 PortMXBean[] getPorts()
          Returns the array of ports.
 long getRequestCountTotal()
          Returns the total number of requests serviced by the server since it started.
 long getRequestReadBytesTotal()
          Returns the total number of bytes that requests serviced by this server have read.
 long getRequestTimeTotal()
          Returns the total duration in milliseconds that requests serviced by this server have taken.
 long getRequestWriteBytesTotal()
          Returns the total number of bytes that requests serviced by this server have written.
 long getRuntimeMemory()
          Returns the current total amount of memory available for the JVM, in bytes.
 long getRuntimeMemoryFree()
          Returns the current free amount of memory available for the JVM, in bytes.
 int getSelectKeepaliveCount()
          Returns the current number of connections that are in the keepalive state and are using select to maintain the connection.
 java.util.Date getStartTime()
          Returns the last start time.
 java.lang.String getState()
          The current lifecycle state.
 int getThreadActiveCount()
          Returns the current number of threads that are servicing requests.
 int getThreadKeepaliveCount()
          Returns the current number of connections that are in the keepalive state and are using a thread to maintain the connection.
 ThreadPoolMXBean getThreadPool()
          Returns the server's thread pool administration
 boolean isDetailedStatistics()
          Returns true if detailed statistics are being kept.
 boolean isSelectManagerEnabled()
          Returns true if a AbstractSelectManager is enabled and active
 void restart()
          Restart this Resin server.
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getName, getObjectName, getType
 

Method Detail

getId

java.lang.String getId()
Returns the -server id.


getCluster

ClusterMXBean getCluster()
Returns the cluster owning this server


getPorts

PortMXBean[] getPorts()
Returns the array of ports.


getThreadPool

ThreadPoolMXBean getThreadPool()
Returns the server's thread pool administration


getClusterPort

PortMXBean getClusterPort()
Returns the cluster port


isSelectManagerEnabled

boolean isSelectManagerEnabled()
Returns true if a AbstractSelectManager is enabled and active


isDetailedStatistics

boolean isDetailedStatistics()
Returns true if detailed statistics are being kept.


getState

java.lang.String getState()
The current lifecycle state.


getCurrentTime

java.util.Date getCurrentTime()
Returns the current time according to the server.


getStartTime

java.util.Date getStartTime()
Returns the last start time.


getThreadActiveCount

int getThreadActiveCount()
Returns the current number of threads that are servicing requests.


getThreadKeepaliveCount

int getThreadKeepaliveCount()
Returns the current number of connections that are in the keepalive state and are using a thread to maintain the connection.


getSelectKeepaliveCount

int getSelectKeepaliveCount()
Returns the current number of connections that are in the keepalive state and are using select to maintain the connection.


getRequestCountTotal

long getRequestCountTotal()
Returns the total number of requests serviced by the server since it started.


getKeepaliveCountTotal

long getKeepaliveCountTotal()
Returns the number of requests that have ended up in the keepalive state for this server in it's lifetime.


getClientDisconnectCountTotal

long getClientDisconnectCountTotal()
The total number of connections that have terminated with ClientDisconnectException.


getRequestTimeTotal

@Units(value="milliseconds")
long getRequestTimeTotal()
Returns the total duration in milliseconds that requests serviced by this server have taken.


getRequestReadBytesTotal

@Units(value="bytes")
long getRequestReadBytesTotal()
Returns the total number of bytes that requests serviced by this server have read.


getRequestWriteBytesTotal

@Units(value="bytes")
long getRequestWriteBytesTotal()
Returns the total number of bytes that requests serviced by this server have written.


getInvocationCacheHitCountTotal

long getInvocationCacheHitCountTotal()
Returns the invocation cache hit count.


getInvocationCacheMissCountTotal

long getInvocationCacheMissCountTotal()
Returns the invocation cache miss count.


getRuntimeMemory

@Units(value="bytes")
long getRuntimeMemory()
Returns the current total amount of memory available for the JVM, in bytes.


getRuntimeMemoryFree

@Units(value="bytes")
long getRuntimeMemoryFree()
Returns the current free amount of memory available for the JVM, in bytes.


getCpuLoadAvg

double getCpuLoadAvg()
Returns the current CPU load average.


restart

void restart()
Restart this Resin server.