@Module public class TcpPortAdmin extends AbstractManagedObject implements PortMXBean
| Constructor and Description | 
|---|
TcpPortAdmin(TcpPort port)  | 
| Modifier and Type | Method and Description | 
|---|---|
TcpConnectionInfo[] | 
connectionInfo()
returns information for all the port's connections 
 | 
int | 
getAcceptListenBacklog()
Returns the operating system listen backlog 
 | 
int | 
getAcceptThreadMax()
Returns the maximum number of accept threads 
 | 
int | 
getAcceptThreadMin()
Returns the minimum number of accept threads 
 | 
java.lang.String | 
getAddress()
Returns the ip address or used to bind the port. 
 | 
long | 
getClientDisconnectCountTotal()
The total number of connections that have terminated with
  
ClientDisconnectException. | 
int | 
getCometIdleCount()
Returns the current number of comet-socket idle and
 waiting to service requests. 
 | 
int | 
getConnectionMax()
Returns the maximum number of active connections allowed for the port. 
 | 
long | 
getKeepaliveConnectionTimeMax()
Returns the maximum total time for keepalive connections 
 | 
int | 
getKeepaliveCount()
Returns the current number of connections that are in the keepalive
 state 
 | 
long | 
getKeepaliveCountTotal()
Returns the number of requests that have ended up in the keepalive state
 for this server in its lifetime. 
 | 
int | 
getKeepaliveMax()
Returns the maximum number keepalive connections allowed for the port. 
 | 
int | 
getKeepaliveSelectCount()
Returns the current number of connections that are in the keepalive
 state and are using select to maintain the connection. 
 | 
long | 
getKeepaliveSelectCountTotal()
Returns the number of requests that have ended up in the 
 keepalive select state for this server in its lifetime. 
 | 
int | 
getKeepaliveSelectMax()
Returns the maximum number of select keepalive connections allowed for the port. 
 | 
int | 
getKeepaliveThreadCount()
Returns the current number of connections that are in the keepalive
 state and are using a thread to maintain the connection. 
 | 
long | 
getKeepaliveThreadTimeout()
Returns the timeout for a keepalive using its own thread before 
 going to the select. 
 | 
long | 
getKeepaliveTimeout()
Returns the timeout for a keepalive connection 
 | 
java.lang.String | 
getName()
The JMX name property of the mbean. 
 | 
int | 
getPort()
Returns the port number used to bind the port. 
 | 
int | 
getPortThreadMax()
Returns the active threads for the port. 
 | 
java.lang.String | 
getProtocolName()
Returns the port's protocol name. 
 | 
long | 
getReadBytesTotal()
Returns the total number of bytes that requests serviced by this
 port have read. 
 | 
long | 
getRequestCountTotal()
Returns the total number of requests serviced by the server
 since it started. 
 | 
long | 
getRequestTimeTotal()
Returns the total duration in milliseconds that requests serviced by
 this port have taken. 
 | 
long | 
getSocketTimeout()
Returns the timeout for socket reads when waiting for data from a client. 
 | 
java.lang.String | 
getState()  | 
long | 
getSuspendTimeMax()
Returns the suspend/comet time max 
 | 
int | 
getThreadActiveCount()
Returns the current number of threads that are servicing requests. 
 | 
int | 
getThreadCount()
Returns the current number of threads that are servicing requests. 
 | 
int | 
getThreadIdleCount()
Returns the current number of threads that are idle and
 waiting to service requests. 
 | 
int | 
getThreadStartCount()
Returns the current number of threads that are starting and
 waiting to service requests. 
 | 
long | 
getThrottleDisconnectCountTotal()
The total number of connections that have been disconnected
 by throttling. 
 | 
long | 
getWriteBytesTotal()
Returns the total number of bytes that requests serviced by this
 port have written. 
 | 
boolean | 
isJniEnabled()
Returns true if JNI is enabled 
 | 
boolean | 
isSSL()  | 
boolean | 
isTcpKeepalive()
Returns true if tcp-keepalive is enabled. 
 | 
boolean | 
isTcpNoDelay()
Returns true if tcp-no-delay is enabled. 
 | 
void | 
start()
Enable the port, letting it listening to new requests. 
 | 
void | 
stop()
Disable the port, stopping it from listening to new requests. 
 | 
java.lang.String | 
toString()  | 
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectName, getTypepublic TcpPortAdmin(TcpPort port)
public java.lang.String getName()
AbstractManagedObjectgetName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic java.lang.String getProtocolName()
PortMXBeangetProtocolName in interface PortMXBeanpublic java.lang.String getAddress()
PortMXBeangetAddress in interface PortMXBeanpublic int getPort()
PortMXBeangetPort in interface PortMXBeanpublic boolean isSSL()
isSSL in interface PortMXBeanpublic int getAcceptThreadMin()
PortMXBeangetAcceptThreadMin in interface PortMXBeanpublic int getAcceptThreadMax()
PortMXBeangetAcceptThreadMax in interface PortMXBeanpublic int getAcceptListenBacklog()
PortMXBeangetAcceptListenBacklog in interface PortMXBeanpublic int getConnectionMax()
PortMXBeangetConnectionMax in interface PortMXBeanpublic int getPortThreadMax()
PortMXBeangetPortThreadMax in interface PortMXBeanpublic int getKeepaliveMax()
PortMXBeangetKeepaliveMax in interface PortMXBeanpublic int getKeepaliveSelectMax()
PortMXBeangetKeepaliveSelectMax in interface PortMXBeanpublic long getKeepaliveConnectionTimeMax()
PortMXBeangetKeepaliveConnectionTimeMax in interface PortMXBeanpublic long getKeepaliveThreadTimeout()
PortMXBeangetKeepaliveThreadTimeout in interface PortMXBeanpublic long getKeepaliveTimeout()
PortMXBeangetKeepaliveTimeout in interface PortMXBeanpublic long getSocketTimeout()
PortMXBeanSocket.setSoTimeout(int), although the actual
 socket connection may be handled in different ways.getSocketTimeout in interface PortMXBeanpublic boolean isTcpKeepalive()
PortMXBeanisTcpKeepalive in interface PortMXBeanpublic boolean isTcpNoDelay()
PortMXBeanisTcpNoDelay in interface PortMXBeanpublic long getSuspendTimeMax()
PortMXBeangetSuspendTimeMax in interface PortMXBeanpublic java.lang.String getState()
getState in interface PortMXBeanpublic int getThreadCount()
PortMXBeangetThreadCount in interface PortMXBeanpublic int getThreadActiveCount()
PortMXBeangetThreadActiveCount in interface PortMXBeanpublic int getThreadIdleCount()
PortMXBeangetThreadIdleCount in interface PortMXBeanpublic int getThreadStartCount()
PortMXBeangetThreadStartCount in interface PortMXBeanpublic boolean isJniEnabled()
PortMXBeanisJniEnabled in interface PortMXBeanpublic int getKeepaliveCount()
PortMXBeangetKeepaliveCount in interface PortMXBeanpublic int getKeepaliveThreadCount()
PortMXBeangetKeepaliveThreadCount in interface PortMXBeanpublic int getKeepaliveSelectCount()
PortMXBeangetKeepaliveSelectCount in interface PortMXBeanpublic int getCometIdleCount()
PortMXBeangetCometIdleCount in interface PortMXBeanpublic long getRequestCountTotal()
PortMXBeangetRequestCountTotal in interface PortMXBeanpublic long getKeepaliveCountTotal()
PortMXBeangetKeepaliveCountTotal in interface PortMXBeanpublic long getKeepaliveSelectCountTotal()
PortMXBeangetKeepaliveSelectCountTotal in interface PortMXBeanpublic long getClientDisconnectCountTotal()
PortMXBeanClientDisconnectException.getClientDisconnectCountTotal in interface PortMXBeanpublic long getThrottleDisconnectCountTotal()
PortMXBeangetThrottleDisconnectCountTotal in interface PortMXBeanpublic long getRequestTimeTotal()
PortMXBeangetRequestTimeTotal in interface PortMXBeanpublic long getReadBytesTotal()
PortMXBeangetReadBytesTotal in interface PortMXBeanpublic long getWriteBytesTotal()
PortMXBeangetWriteBytesTotal in interface PortMXBeanpublic void start()
start in interface PortMXBeanpublic void stop()
stop in interface PortMXBeanpublic TcpConnectionInfo[] connectionInfo()
connectionInfo in interface PortMXBeanpublic java.lang.String toString()
toString in class AbstractManagedObject