com.caucho.network.listen
Class SocketLinkAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.network.listen.SocketLinkAdmin
All Implemented Interfaces:
ManagedObjectMXBean, PortMXBean

@Module
public class SocketLinkAdmin
extends AbstractManagedObject
implements PortMXBean


Constructor Summary
SocketLinkAdmin(TcpSocketLinkListener port)
           
 
Method Summary
 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 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 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.
 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 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()
           
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

SocketLinkAdmin

public SocketLinkAdmin(TcpSocketLinkListener port)
Method Detail

getName

public java.lang.String getName()
Description copied from class: AbstractManagedObject
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

getProtocolName

public java.lang.String getProtocolName()
Description copied from interface: PortMXBean
Returns the port's protocol name.

Specified by:
getProtocolName in interface PortMXBean

getAddress

public java.lang.String getAddress()
Description copied from interface: PortMXBean
Returns the ip address or used to bind the port.

Specified by:
getAddress in interface PortMXBean

getPort

public int getPort()
Description copied from interface: PortMXBean
Returns the port number used to bind the port.

Specified by:
getPort in interface PortMXBean

isSSL

public boolean isSSL()
Specified by:
isSSL in interface PortMXBean

getAcceptThreadMin

public int getAcceptThreadMin()
Description copied from interface: PortMXBean
Returns the minimum number of accept threads

Specified by:
getAcceptThreadMin in interface PortMXBean

getAcceptThreadMax

public int getAcceptThreadMax()
Description copied from interface: PortMXBean
Returns the maximum number of accept threads

Specified by:
getAcceptThreadMax in interface PortMXBean

getAcceptListenBacklog

public int getAcceptListenBacklog()
Description copied from interface: PortMXBean
Returns the operating system listen backlog

Specified by:
getAcceptListenBacklog in interface PortMXBean

getConnectionMax

public int getConnectionMax()
Description copied from interface: PortMXBean
Returns the maximum number of active connections allowed for the port.

Specified by:
getConnectionMax in interface PortMXBean

getKeepaliveMax

public int getKeepaliveMax()
Description copied from interface: PortMXBean
Returns the maximum number keepalive connections allowed for the port.

Specified by:
getKeepaliveMax in interface PortMXBean

getKeepaliveSelectMax

public int getKeepaliveSelectMax()
Description copied from interface: PortMXBean
Returns the maximum number of select keepalive connections allowed for the port.

Specified by:
getKeepaliveSelectMax in interface PortMXBean

getKeepaliveConnectionTimeMax

public long getKeepaliveConnectionTimeMax()
Description copied from interface: PortMXBean
Returns the maximum total time for keepalive connections

Specified by:
getKeepaliveConnectionTimeMax in interface PortMXBean

getKeepaliveThreadTimeout

public long getKeepaliveThreadTimeout()
Description copied from interface: PortMXBean
Returns the timeout for a keepalive using its own thread before going to the select.

Specified by:
getKeepaliveThreadTimeout in interface PortMXBean

getKeepaliveTimeout

public long getKeepaliveTimeout()
Description copied from interface: PortMXBean
Returns the timeout for a keepalive connection

Specified by:
getKeepaliveTimeout in interface PortMXBean

getSocketTimeout

public long getSocketTimeout()
Description copied from interface: PortMXBean
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.

Specified by:
getSocketTimeout in interface PortMXBean

isTcpKeepalive

public boolean isTcpKeepalive()
Description copied from interface: PortMXBean
Returns true if tcp-keepalive is enabled.

Specified by:
isTcpKeepalive in interface PortMXBean

isTcpNoDelay

public boolean isTcpNoDelay()
Description copied from interface: PortMXBean
Returns true if tcp-no-delay is enabled.

Specified by:
isTcpNoDelay in interface PortMXBean

getSuspendTimeMax

public long getSuspendTimeMax()
Description copied from interface: PortMXBean
Returns the suspend/comet time max

Specified by:
getSuspendTimeMax in interface PortMXBean

getState

public java.lang.String getState()
Specified by:
getState in interface PortMXBean

getThreadCount

public int getThreadCount()
Description copied from interface: PortMXBean
Returns the current number of threads that are servicing requests.

Specified by:
getThreadCount in interface PortMXBean

getThreadActiveCount

public int getThreadActiveCount()
Description copied from interface: PortMXBean
Returns the current number of threads that are servicing requests.

Specified by:
getThreadActiveCount in interface PortMXBean

getThreadIdleCount

public int getThreadIdleCount()
Description copied from interface: PortMXBean
Returns the current number of threads that are idle and waiting to service requests.

Specified by:
getThreadIdleCount in interface PortMXBean

getThreadStartCount

public int getThreadStartCount()
Description copied from interface: PortMXBean
Returns the current number of threads that are starting and waiting to service requests.

Specified by:
getThreadStartCount in interface PortMXBean

isJniEnabled

public boolean isJniEnabled()
Description copied from interface: PortMXBean
Returns true if JNI is enabled

Specified by:
isJniEnabled in interface PortMXBean

getKeepaliveCount

public int getKeepaliveCount()
Description copied from interface: PortMXBean
Returns the current number of connections that are in the keepalive state

Specified by:
getKeepaliveCount in interface PortMXBean

getKeepaliveThreadCount

public int getKeepaliveThreadCount()
Description copied from interface: PortMXBean
Returns the current number of connections that are in the keepalive state and are using a thread to maintain the connection.

Specified by:
getKeepaliveThreadCount in interface PortMXBean

getKeepaliveSelectCount

public int getKeepaliveSelectCount()
Description copied from interface: PortMXBean
Returns the current number of connections that are in the keepalive state and are using select to maintain the connection.

Specified by:
getKeepaliveSelectCount in interface PortMXBean

getCometIdleCount

public int getCometIdleCount()
Description copied from interface: PortMXBean
Returns the current number of comet-socket idle and waiting to service requests.

Specified by:
getCometIdleCount in interface PortMXBean

getRequestCountTotal

public long getRequestCountTotal()
Description copied from interface: PortMXBean
Returns the total number of requests serviced by the server since it started.

Specified by:
getRequestCountTotal in interface PortMXBean

getKeepaliveCountTotal

public long getKeepaliveCountTotal()
Description copied from interface: PortMXBean
Returns the number of requests that have ended up in the keepalive state for this server in it's lifetime.

Specified by:
getKeepaliveCountTotal in interface PortMXBean

getClientDisconnectCountTotal

public long getClientDisconnectCountTotal()
Description copied from interface: PortMXBean
The total number of connections that have terminated with ClientDisconnectException.

Specified by:
getClientDisconnectCountTotal in interface PortMXBean

getRequestTimeTotal

public long getRequestTimeTotal()
Description copied from interface: PortMXBean
Returns the total duration in milliseconds that requests serviced by this port have taken.

Specified by:
getRequestTimeTotal in interface PortMXBean

getReadBytesTotal

public long getReadBytesTotal()
Description copied from interface: PortMXBean
Returns the total number of bytes that requests serviced by this port have read.

Specified by:
getReadBytesTotal in interface PortMXBean

getWriteBytesTotal

public long getWriteBytesTotal()
Description copied from interface: PortMXBean
Returns the total number of bytes that requests serviced by this port have written.

Specified by:
getWriteBytesTotal in interface PortMXBean

start

public void start()
Enable the port, letting it listening to new requests.

Specified by:
start in interface PortMXBean

stop

public void stop()
Disable the port, stopping it from listening to new requests.

Specified by:
stop in interface PortMXBean

connectionInfo

public TcpConnectionInfo[] connectionInfo()
returns information for all the port's connections

Specified by:
connectionInfo in interface PortMXBean

toString

public java.lang.String toString()
Overrides:
toString in class AbstractManagedObject