com.caucho.management.server
Interface PortMXBean

All Superinterfaces:
ManagedObjectMXBean
All Known Implementing Classes:
PortAdmin

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 it's 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.
 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 getKeepaliveTimeout()
          Returns the timeout for a keepalive connection
 int getPort()
          Returns the port number used to bind 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.
 long getWriteBytesTotal()
          Returns the total number of bytes that requests serviced by this port have written.
 boolean isSSL()
           
 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


getAcceptListenBacklog

int getAcceptListenBacklog()
Returns the operating system listen backlog


getConnectionMax

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


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.


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


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.


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 it's lifetime.


getClientDisconnectCountTotal

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


getRequestTimeTotal

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


getReadBytesTotal

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


getWriteBytesTotal

@Units(value="milliseconds")
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