public interface PortMXBean extends ManagedObjectMXBean
resin:type=Port,port=80,address=INADDR_ANY
Modifier and Type | Method and Description |
---|---|
TcpConnectionInfo[] |
connectionInfo()
Returns the connection info
|
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
|
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()
Enables the port, letting it listen to new connections.
|
void |
stop()
Disables the port, stopping it from listening to connections.
|
getName, getObjectName, getType
java.lang.String getAddress()
java.lang.String getProtocolName()
int getPort()
boolean isSSL()
int getAcceptThreadMin()
int getAcceptThreadMax()
int getPortThreadMax()
int getAcceptListenBacklog()
int getConnectionMax()
boolean isJniEnabled()
int getKeepaliveMax()
int getKeepaliveSelectMax()
long getKeepaliveThreadTimeout()
long getKeepaliveConnectionTimeMax()
long getKeepaliveTimeout()
@Units(value="milliseconds") long getSocketTimeout()
Socket.setSoTimeout(int)
, although the actual
socket connection may be handled in different ways.@Units(value="milliseconds") long getSuspendTimeMax()
boolean isTcpNoDelay()
boolean isTcpKeepalive()
java.lang.String getState()
int getThreadCount()
int getThreadActiveCount()
int getThreadIdleCount()
int getThreadStartCount()
int getKeepaliveCount()
int getKeepaliveThreadCount()
int getKeepaliveSelectCount()
int getCometIdleCount()
long getRequestCountTotal()
long getKeepaliveCountTotal()
long getKeepaliveSelectCountTotal()
long getClientDisconnectCountTotal()
ClientDisconnectException
.long getThrottleDisconnectCountTotal()
@Units(value="milliseconds") long getRequestTimeTotal()
@Units(value="bytes") long getReadBytesTotal()
@Units(value="bytes") long getWriteBytesTotal()
void start()
void stop()
TcpConnectionInfo[] connectionInfo()