public class ServerAdmin extends AbstractEmitterObject implements ServerMXBean
| Modifier and Type | Method and Description |
|---|---|
TcpConnectionInfo |
findConnectionByThreadId(long threadId)
Finds the ConnectionMXBean for a given thread id
|
java.util.ArrayList<CacheItem> |
getCacheStatistics()
Returns the cache stuff.
|
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 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 its lifetime.
|
long |
getMemoryFreeMin()
Returns the memory-free-min limit for forcing GC and restarting.
|
java.lang.String |
getName()
The JMX name property of the mbean.
|
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 owning this server
|
long |
getSendfileCountTotal()
Returns the invocation cache miss count.
|
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
|
java.lang.String |
getType()
The JMX type of this MBean, defaults to the prefix of the FooMXBean..
|
long |
getUptime()
Returns the time since the last start time.
|
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.
|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListeneraddObjectNameProperties, getObjectName, registerSelf, toString, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectNamepublic java.lang.String getName()
AbstractManagedObjectgetName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic java.lang.String getType()
AbstractManagedObjectgetType in interface ManagedObjectMXBeangetType in class AbstractManagedObjectpublic java.lang.String getId()
ServerMXBeangetId in interface ServerMXBeanpublic int getServerIndex()
ServerMXBeangetServerIndex in interface ServerMXBeanpublic ClusterServerMXBean getSelfServer()
getSelfServer in interface ServerMXBeanpublic ClusterMXBean getCluster()
getCluster in interface ServerMXBeanpublic EnvironmentMXBean getEnvironment()
ServerMXBeangetEnvironment in interface ServerMXBeanpublic PortMXBean[] getPorts()
getPorts in interface ServerMXBeanpublic ThreadPoolMXBean getThreadPool()
getThreadPool in interface ServerMXBeanpublic PortMXBean getClusterPort()
getClusterPort in interface ServerMXBeanpublic boolean isBindPortsAfterStart()
ServerMXBeanisBindPortsAfterStart in interface ServerMXBeanpublic boolean isDetailedStatistics()
isDetailedStatistics in interface ServerMXBeanpublic boolean isDevelopmentModeErrorPage()
ServerMXBeanisDevelopmentModeErrorPage in interface ServerMXBeanpublic long getMemoryFreeMin()
ServerMXBeangetMemoryFreeMin in interface ServerMXBeanpublic long getPermGenFreeMin()
ServerMXBeangetPermGenFreeMin in interface ServerMXBeanpublic java.lang.String getServerHeader()
ServerMXBeangetServerHeader in interface ServerMXBeanpublic boolean isSelectManagerEnabled()
ServerMXBeanAbstractSelectManager
is enabled and activeisSelectManagerEnabled in interface ServerMXBeanpublic long getShutdownWaitMax()
ServerMXBeangetShutdownWaitMax in interface ServerMXBeanpublic java.lang.String getStage()
ServerMXBeangetStage in interface ServerMXBeanpublic int getUrlLengthMax()
ServerMXBeangetUrlLengthMax in interface ServerMXBeanpublic int getHeaderSizeMax()
ServerMXBeangetHeaderSizeMax in interface ServerMXBeanpublic int getHeaderCountMax()
ServerMXBeangetHeaderCountMax in interface ServerMXBeanpublic java.lang.String getState()
getState in interface ServerMXBeanpublic java.util.Date getCurrentTime()
getCurrentTime in interface ServerMXBeanpublic java.util.Date getStartTime()
getStartTime in interface ServerMXBeanpublic long getUptime()
getUptime in interface ServerMXBeanpublic int getThreadActiveCount()
getThreadActiveCount in interface ServerMXBeanpublic int getThreadKeepaliveCount()
getThreadKeepaliveCount in interface ServerMXBeanpublic int getSelectKeepaliveCount()
getSelectKeepaliveCount in interface ServerMXBeanpublic long getRequestCountTotal()
getRequestCountTotal in interface ServerMXBeanpublic long getKeepaliveCountTotal()
getKeepaliveCountTotal in interface ServerMXBeanpublic long getClientDisconnectCountTotal()
ClientDisconnectException.getClientDisconnectCountTotal in interface ServerMXBeanpublic long getRequestTimeTotal()
getRequestTimeTotal in interface ServerMXBeanpublic long getRequestReadBytesTotal()
getRequestReadBytesTotal in interface ServerMXBeanpublic long getRequestWriteBytesTotal()
getRequestWriteBytesTotal in interface ServerMXBeanpublic long getInvocationCacheHitCountTotal()
getInvocationCacheHitCountTotal in interface ServerMXBeanpublic long getInvocationCacheMissCountTotal()
getInvocationCacheMissCountTotal in interface ServerMXBeanpublic long getSendfileCountTotal()
getSendfileCountTotal in interface ServerMXBeanpublic long getRuntimeMemory()
getRuntimeMemory in interface ServerMXBeanpublic long getRuntimeMemoryFree()
getRuntimeMemoryFree in interface ServerMXBeanpublic double getCpuLoadAvg()
getCpuLoadAvg in interface ServerMXBeanpublic java.util.ArrayList<CacheItem> getCacheStatistics()
public void restart()
restart in interface ServerMXBeanpublic TcpConnectionInfo findConnectionByThreadId(long threadId)
findConnectionByThreadId in interface ServerMXBean