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, removeNotificationListener
addObjectNameProperties, getObjectName, registerSelf, toString, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String getType()
AbstractManagedObject
getType
in interface ManagedObjectMXBean
getType
in class AbstractManagedObject
public java.lang.String getId()
ServerMXBean
getId
in interface ServerMXBean
public int getServerIndex()
ServerMXBean
getServerIndex
in interface ServerMXBean
public ClusterServerMXBean getSelfServer()
getSelfServer
in interface ServerMXBean
public ClusterMXBean getCluster()
getCluster
in interface ServerMXBean
public EnvironmentMXBean getEnvironment()
ServerMXBean
getEnvironment
in interface ServerMXBean
public PortMXBean[] getPorts()
getPorts
in interface ServerMXBean
public ThreadPoolMXBean getThreadPool()
getThreadPool
in interface ServerMXBean
public PortMXBean getClusterPort()
getClusterPort
in interface ServerMXBean
public boolean isBindPortsAfterStart()
ServerMXBean
isBindPortsAfterStart
in interface ServerMXBean
public boolean isDetailedStatistics()
isDetailedStatistics
in interface ServerMXBean
public boolean isDevelopmentModeErrorPage()
ServerMXBean
isDevelopmentModeErrorPage
in interface ServerMXBean
public long getMemoryFreeMin()
ServerMXBean
getMemoryFreeMin
in interface ServerMXBean
public long getPermGenFreeMin()
ServerMXBean
getPermGenFreeMin
in interface ServerMXBean
public java.lang.String getServerHeader()
ServerMXBean
getServerHeader
in interface ServerMXBean
public boolean isSelectManagerEnabled()
ServerMXBean
AbstractSelectManager
is enabled and activeisSelectManagerEnabled
in interface ServerMXBean
public long getShutdownWaitMax()
ServerMXBean
getShutdownWaitMax
in interface ServerMXBean
public java.lang.String getStage()
ServerMXBean
getStage
in interface ServerMXBean
public int getUrlLengthMax()
ServerMXBean
getUrlLengthMax
in interface ServerMXBean
public int getHeaderSizeMax()
ServerMXBean
getHeaderSizeMax
in interface ServerMXBean
public int getHeaderCountMax()
ServerMXBean
getHeaderCountMax
in interface ServerMXBean
public java.lang.String getState()
getState
in interface ServerMXBean
public java.util.Date getCurrentTime()
getCurrentTime
in interface ServerMXBean
public java.util.Date getStartTime()
getStartTime
in interface ServerMXBean
public long getUptime()
getUptime
in interface ServerMXBean
public int getThreadActiveCount()
getThreadActiveCount
in interface ServerMXBean
public int getThreadKeepaliveCount()
getThreadKeepaliveCount
in interface ServerMXBean
public int getSelectKeepaliveCount()
getSelectKeepaliveCount
in interface ServerMXBean
public long getRequestCountTotal()
getRequestCountTotal
in interface ServerMXBean
public long getKeepaliveCountTotal()
getKeepaliveCountTotal
in interface ServerMXBean
public long getClientDisconnectCountTotal()
ClientDisconnectException
.getClientDisconnectCountTotal
in interface ServerMXBean
public long getRequestTimeTotal()
getRequestTimeTotal
in interface ServerMXBean
public long getRequestReadBytesTotal()
getRequestReadBytesTotal
in interface ServerMXBean
public long getRequestWriteBytesTotal()
getRequestWriteBytesTotal
in interface ServerMXBean
public long getInvocationCacheHitCountTotal()
getInvocationCacheHitCountTotal
in interface ServerMXBean
public long getInvocationCacheMissCountTotal()
getInvocationCacheMissCountTotal
in interface ServerMXBean
public long getSendfileCountTotal()
getSendfileCountTotal
in interface ServerMXBean
public long getRuntimeMemory()
getRuntimeMemory
in interface ServerMXBean
public long getRuntimeMemoryFree()
getRuntimeMemoryFree
in interface ServerMXBean
public double getCpuLoadAvg()
getCpuLoadAvg
in interface ServerMXBean
public java.util.ArrayList<CacheItem> getCacheStatistics()
public void restart()
restart
in interface ServerMXBean
public TcpConnectionInfo findConnectionByThreadId(long threadId)
findConnectionByThreadId
in interface ServerMXBean