com.caucho.management.server
Interface PortMXBean

All Superinterfaces:
ManagedObjectMXBean
All Known Implementing Classes:
TcpPortAdmin

public interface PortMXBean
extends ManagedObjectMXBean

Represents a protocol connection. A typical ObjectName for a Port is

 resin:type=Port,port=80,address=INADDR_ANY
 


Method Summary
 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.
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getName, getObjectName, getType
 

Method Detail

getAddress

java.lang.String getAddress()
Returns the ip address or used to bind the port.


getProtocolName

java.lang.String getProtocolName()
Returns the port's protocol name.


getPort

int getPort()
Returns the port number used to bind the port.


isSSL

boolean isSSL()

getAcceptThreadMin

int getAcceptThreadMin()
Returns the minimum number of accept threads


getAcceptThreadMax

int getAcceptThreadMax()
Returns the maximum number of accept threads


getPortThreadMax

int getPortThreadMax()
Returns the active threads for the port.


getAcceptListenBacklog

int getAcceptListenBacklog()
Returns the operating system listen backlog


getConnectionMax

int getConnectionMax()
Returns the maximum number of active connections allowed for the port.


isJniEnabled

boolean isJniEnabled()
Returns true if JNI is enabled


getKeepaliveMax

int getKeepaliveMax()
Returns the maximum number keepalive connections allowed for the port.


getKeepaliveSelectMax

int getKeepaliveSelectMax()
Returns the maximum number of select keepalive connections allowed for the port.


getKeepaliveThreadTimeout

long getKeepaliveThreadTimeout()
Returns the timeout for a keepalive using its own thread before going to the select.


getKeepaliveConnectionTimeMax

long getKeepaliveConnectionTimeMax()
Returns the maximum total time for keepalive connections


getKeepaliveTimeout

long getKeepaliveTimeout()
Returns the timeout for a keepalive connection


getSocketTimeout

@Units(value="milliseconds")
long getSocketTimeout()
Returns the timeout for socket reads when waiting for data from a client. Corresponds to the functionality described in Socket.setSoTimeout(int), although the actual socket connection may be handled in different ways.


getSuspendTimeMax

@Units(value="milliseconds")
long getSuspendTimeMax()
Returns the suspend/comet time max


isTcpNoDelay

boolean isTcpNoDelay()
Returns true if tcp-no-delay is enabled.


isTcpKeepalive

boolean isTcpKeepalive()
Returns true if tcp-keepalive is enabled.


getState

java.lang.String getState()

getThreadCount

int getThreadCount()
Returns the current number of threads that are servicing requests.


getThreadActiveCount

int getThreadActiveCount()
Returns the current number of threads that are servicing requests.


getThreadIdleCount

int getThreadIdleCount()
Returns the current number of threads that are idle and waiting to service requests.


getThreadStartCount

int getThreadStartCount()
Returns the current number of threads that are starting and waiting to service requests.


getKeepaliveCount

int getKeepaliveCount()
Returns the current number of connections that are in the keepalive state


getKeepaliveThreadCount

int getKeepaliveThreadCount()
Returns the current number of connections that are in the keepalive state and are using a thread to maintain the connection.


getKeepaliveSelectCount

int getKeepaliveSelectCount()
Returns the current number of connections that are in the keepalive state and are using select to maintain the connection.


getCometIdleCount

int getCometIdleCount()
Returns the current number of comet-socket idle and waiting to service requests.


getRequestCountTotal

long getRequestCountTotal()
Returns the total number of requests serviced by the server since it started.


getKeepaliveCountTotal

long getKeepaliveCountTotal()
Returns the number of requests that have ended up in the keepalive state for this server in its lifetime.


getKeepaliveSelectCountTotal

long getKeepaliveSelectCountTotal()
Returns the number of requests that have ended up in the keepalive select state for this server in its lifetime.


getClientDisconnectCountTotal

long getClientDisconnectCountTotal()
The total number of connections that have terminated with ClientDisconnectException.


getThrottleDisconnectCountTotal

long getThrottleDisconnectCountTotal()
The total number of connections that have been disconnected by throttling.


getRequestTimeTotal

@Units(value="milliseconds")
long getRequestTimeTotal()
Returns the total duration in milliseconds that requests serviced by this port have taken.


getReadBytesTotal

@Units(value="bytes")
long getReadBytesTotal()
Returns the total number of bytes that requests serviced by this port have read.


getWriteBytesTotal

@Units(value="bytes")
long getWriteBytesTotal()
Returns the total number of bytes that requests serviced by this port have written.


start

void start()
Enables the port, letting it listen to new connections.


stop

void stop()
Disables the port, stopping it from listening to connections.


connectionInfo

TcpConnectionInfo[] connectionInfo()
Returns the connection info