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
 TcpConnectionInfo findConnectionByThreadId(long threadId)
          Returns the TcpConnectionInfo for a given thread id
 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.
 EnvironmentMXBean getEnvironment()
          Returns the classloader EnvironmentMXBean
 int getHeaderCountMax()
          Returns the HTTP header maximum count
 int getHeaderSizeMax()
          Returns the HTTP header maximum length
 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.
 long getMemoryFreeMin()
          Returns the memory-free-min limit for forcing GC and restarting.
 long getPermGenFreeMin()
          Returns the perm-gen-free-min limit for forcing GC and restarting.
 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.
 ClusterServerMXBean getSelfServer()
          Returns the cluster server for this server
 long getSendfileCountTotal()
          Returns the number of sendfile() responses
 java.lang.String getServerHeader()
          Returns the HTTP server header.
 int getServerIndex()
          Returns the server index in the cluster triad.
 long getShutdownWaitMax()
          The maximum time to spend waiting for the server to stop gracefully
 java.lang.String getStage()
          Returns the deployment repository stage.
 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
 long getUptime()
          Returns the time in milliseconds since the last start.
 int getUrlLengthMax()
          Returns the HTTP URL maximum length
 boolean isBindPortsAfterStart()
          Returns true if ports are bound after startup.
 boolean isDetailedStatistics()
          Returns true if detailed statistics are being kept.
 boolean isDevelopmentModeErrorPage()
          True if detailed error pages are being generated.
 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.


getServerIndex

int getServerIndex()
Returns the server index in the cluster triad.


getSelfServer

ClusterServerMXBean getSelfServer()
Returns the cluster server for this server


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


getEnvironment

EnvironmentMXBean getEnvironment()
Returns the classloader EnvironmentMXBean


isBindPortsAfterStart

boolean isBindPortsAfterStart()
Returns true if ports are bound after startup.


isDetailedStatistics

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


isDevelopmentModeErrorPage

boolean isDevelopmentModeErrorPage()
True if detailed error pages are being generated.


getMemoryFreeMin

long getMemoryFreeMin()
Returns the memory-free-min limit for forcing GC and restarting.


getPermGenFreeMin

long getPermGenFreeMin()
Returns the perm-gen-free-min limit for forcing GC and restarting.


getShutdownWaitMax

long getShutdownWaitMax()
The maximum time to spend waiting for the server to stop gracefully


isSelectManagerEnabled

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


getServerHeader

java.lang.String getServerHeader()
Returns the HTTP server header.


getStage

java.lang.String getStage()
Returns the deployment repository stage.


getUrlLengthMax

int getUrlLengthMax()
Returns the HTTP URL maximum length


getHeaderSizeMax

int getHeaderSizeMax()
Returns the HTTP header maximum length


getHeaderCountMax

int getHeaderCountMax()
Returns the HTTP header maximum count


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.


getUptime

long getUptime()
Returns the time in milliseconds since the last start.


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.


getSendfileCountTotal

long getSendfileCountTotal()
Returns the number of sendfile() responses


restart

void restart()
Restart this Resin server.


findConnectionByThreadId

TcpConnectionInfo findConnectionByThreadId(long threadId)
Returns the TcpConnectionInfo for a given thread id