org.quickfixj.jmx.mbean.connector
Class SocketAcceptorAdmin

java.lang.Object
  extended by org.quickfixj.jmx.mbean.connector.SocketAcceptorAdmin
All Implemented Interfaces:
ConnectorAdminMBean, SocketAcceptorAdminMBean

public class SocketAcceptorAdmin
extends java.lang.Object
implements SocketAcceptorAdminMBean

Implementation of the socket acceptor management interface.


Nested Class Summary
static class ConnectorAdmin.ConnectorSession
           
static class SocketAcceptorAdmin.SessionAcceptorAddressRow
           
 
Field Summary
static java.lang.String ACCEPTOR_ROLE
           
static java.lang.String INITIATOR_ROLE
           
 
Constructor Summary
SocketAcceptorAdmin(AbstractSocketAcceptor connector, SessionJmxExporter sessionExporter)
           
 
Method Summary
 javax.management.openmbean.TabularData getAcceptorAddresses()
           
 java.lang.String getHostName()
          Get the host name of the connector.
 javax.management.openmbean.TabularData getLoggedOnSessions()
           
 int getQueueSize()
          The size of the underlying event queue
 java.lang.String getRole()
          The connection role.
 javax.management.openmbean.TabularData getSessions()
          Get all session who may be connected through this connector.
 void stop()
          Stop the connector after waiting for logouts.
 void stop(boolean force)
          Stop the connector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.quickfixj.jmx.mbean.connector.ConnectorAdminMBean
getHostName, getRole, getSessions, stop, stop
 

Field Detail

ACCEPTOR_ROLE

public static final java.lang.String ACCEPTOR_ROLE
See Also:
Constant Field Values

INITIATOR_ROLE

public static final java.lang.String INITIATOR_ROLE
See Also:
Constant Field Values
Constructor Detail

SocketAcceptorAdmin

public SocketAcceptorAdmin(AbstractSocketAcceptor connector,
                           SessionJmxExporter sessionExporter)
Method Detail

getAcceptorAddresses

public javax.management.openmbean.TabularData getAcceptorAddresses()
                                                            throws java.io.IOException
Specified by:
getAcceptorAddresses in interface SocketAcceptorAdminMBean
Returns:
the acceptor addresses configured for this connector's sessions.
Throws:
java.io.IOException

getQueueSize

public int getQueueSize()
Description copied from interface: ConnectorAdminMBean
The size of the underlying event queue

Specified by:
getQueueSize in interface ConnectorAdminMBean
Returns:
size of the queue; if this counters grows, the application does not consume FIX message quick enough

getRole

public java.lang.String getRole()
Description copied from interface: ConnectorAdminMBean
The connection role.

Specified by:
getRole in interface ConnectorAdminMBean
Returns:
"ACCEPTOR" if acceptor, "INITIATOR" if initiator.

getSessions

public javax.management.openmbean.TabularData getSessions()
                                                   throws java.io.IOException
Description copied from interface: ConnectorAdminMBean
Get all session who may be connected through this connector.

Specified by:
getSessions in interface ConnectorAdminMBean
Returns:
an array of MBean object names for the sessions.
Throws:
java.io.IOException

getLoggedOnSessions

public javax.management.openmbean.TabularData getLoggedOnSessions()
                                                           throws javax.management.openmbean.OpenDataException
Throws:
javax.management.openmbean.OpenDataException

stop

public void stop(boolean force)
Description copied from interface: ConnectorAdminMBean
Stop the connector.

Specified by:
stop in interface ConnectorAdminMBean
Parameters:
force - don't wait for normal logout from counterparty

getHostName

public java.lang.String getHostName()
Description copied from interface: ConnectorAdminMBean
Get the host name of the connector.

Specified by:
getHostName in interface ConnectorAdminMBean
Returns:
the name of the connector host

stop

public void stop()
Description copied from interface: ConnectorAdminMBean
Stop the connector after waiting for logouts.

Specified by:
stop in interface ConnectorAdminMBean