public interface ServerMXBean extends ManagedObjectMXBean
Since exactly on ServerMBean is running at a time it has a unique mbean name,
resin:type=Server
Modifier and Type | Method and Description |
---|---|
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.
|
getName, getObjectName, getType
java.lang.String getId()
int getServerIndex()
ClusterServerMXBean getSelfServer()
ClusterMXBean getCluster()
PortMXBean[] getPorts()
ThreadPoolMXBean getThreadPool()
PortMXBean getClusterPort()
EnvironmentMXBean getEnvironment()
boolean isBindPortsAfterStart()
boolean isDetailedStatistics()
boolean isDevelopmentModeErrorPage()
long getMemoryFreeMin()
long getPermGenFreeMin()
long getShutdownWaitMax()
boolean isSelectManagerEnabled()
AbstractSelectManager
is enabled and activejava.lang.String getServerHeader()
java.lang.String getStage()
int getUrlLengthMax()
int getHeaderSizeMax()
int getHeaderCountMax()
java.lang.String getState()
java.util.Date getCurrentTime()
java.util.Date getStartTime()
long getUptime()
int getThreadActiveCount()
int getThreadKeepaliveCount()
int getSelectKeepaliveCount()
long getRequestCountTotal()
long getKeepaliveCountTotal()
long getClientDisconnectCountTotal()
ClientDisconnectException
.@Units(value="milliseconds") long getRequestTimeTotal()
@Units(value="bytes") long getRequestReadBytesTotal()
@Units(value="bytes") long getRequestWriteBytesTotal()
long getInvocationCacheHitCountTotal()
long getInvocationCacheMissCountTotal()
@Units(value="bytes") long getRuntimeMemory()
@Units(value="bytes") long getRuntimeMemoryFree()
double getCpuLoadAvg()
long getSendfileCountTotal()
void restart()
TcpConnectionInfo findConnectionByThreadId(long threadId)