@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, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public TcpPortAdmin(TcpPort port)
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String getProtocolName()
PortMXBean
getProtocolName
in interface PortMXBean
public java.lang.String getAddress()
PortMXBean
getAddress
in interface PortMXBean
public int getPort()
PortMXBean
getPort
in interface PortMXBean
public boolean isSSL()
isSSL
in interface PortMXBean
public int getAcceptThreadMin()
PortMXBean
getAcceptThreadMin
in interface PortMXBean
public int getAcceptThreadMax()
PortMXBean
getAcceptThreadMax
in interface PortMXBean
public int getAcceptListenBacklog()
PortMXBean
getAcceptListenBacklog
in interface PortMXBean
public int getConnectionMax()
PortMXBean
getConnectionMax
in interface PortMXBean
public int getPortThreadMax()
PortMXBean
getPortThreadMax
in interface PortMXBean
public int getKeepaliveMax()
PortMXBean
getKeepaliveMax
in interface PortMXBean
public int getKeepaliveSelectMax()
PortMXBean
getKeepaliveSelectMax
in interface PortMXBean
public long getKeepaliveConnectionTimeMax()
PortMXBean
getKeepaliveConnectionTimeMax
in interface PortMXBean
public long getKeepaliveThreadTimeout()
PortMXBean
getKeepaliveThreadTimeout
in interface PortMXBean
public long getKeepaliveTimeout()
PortMXBean
getKeepaliveTimeout
in interface PortMXBean
public long getSocketTimeout()
PortMXBean
Socket.setSoTimeout(int)
, although the actual
socket connection may be handled in different ways.getSocketTimeout
in interface PortMXBean
public boolean isTcpKeepalive()
PortMXBean
isTcpKeepalive
in interface PortMXBean
public boolean isTcpNoDelay()
PortMXBean
isTcpNoDelay
in interface PortMXBean
public long getSuspendTimeMax()
PortMXBean
getSuspendTimeMax
in interface PortMXBean
public java.lang.String getState()
getState
in interface PortMXBean
public int getThreadCount()
PortMXBean
getThreadCount
in interface PortMXBean
public int getThreadActiveCount()
PortMXBean
getThreadActiveCount
in interface PortMXBean
public int getThreadIdleCount()
PortMXBean
getThreadIdleCount
in interface PortMXBean
public int getThreadStartCount()
PortMXBean
getThreadStartCount
in interface PortMXBean
public boolean isJniEnabled()
PortMXBean
isJniEnabled
in interface PortMXBean
public int getKeepaliveCount()
PortMXBean
getKeepaliveCount
in interface PortMXBean
public int getKeepaliveThreadCount()
PortMXBean
getKeepaliveThreadCount
in interface PortMXBean
public int getKeepaliveSelectCount()
PortMXBean
getKeepaliveSelectCount
in interface PortMXBean
public int getCometIdleCount()
PortMXBean
getCometIdleCount
in interface PortMXBean
public long getRequestCountTotal()
PortMXBean
getRequestCountTotal
in interface PortMXBean
public long getKeepaliveCountTotal()
PortMXBean
getKeepaliveCountTotal
in interface PortMXBean
public long getKeepaliveSelectCountTotal()
PortMXBean
getKeepaliveSelectCountTotal
in interface PortMXBean
public long getClientDisconnectCountTotal()
PortMXBean
ClientDisconnectException
.getClientDisconnectCountTotal
in interface PortMXBean
public long getThrottleDisconnectCountTotal()
PortMXBean
getThrottleDisconnectCountTotal
in interface PortMXBean
public long getRequestTimeTotal()
PortMXBean
getRequestTimeTotal
in interface PortMXBean
public long getReadBytesTotal()
PortMXBean
getReadBytesTotal
in interface PortMXBean
public long getWriteBytesTotal()
PortMXBean
getWriteBytesTotal
in interface PortMXBean
public void start()
start
in interface PortMXBean
public void stop()
stop
in interface PortMXBean
public TcpConnectionInfo[] connectionInfo()
connectionInfo
in interface PortMXBean
public java.lang.String toString()
toString
in class AbstractManagedObject