public class SocketAcceptorAdmin extends Object implements SocketAcceptorAdminMBean
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectorAdmin.ConnectorSession |
static class |
SocketAcceptorAdmin.SessionAcceptorAddressRow |
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPTOR_ROLE |
static String |
INITIATOR_ROLE |
protected SessionJmxExporter |
sessionExporter |
protected static TabularDataAdapter |
TABULAR_DATA_ADAPTER |
| Constructor and Description |
|---|
SocketAcceptorAdmin(JmxExporter jmxExporter,
AbstractSocketAcceptor connector,
ObjectName connectorName,
SessionJmxExporter sessionExporter) |
| Modifier and Type | Method and Description |
|---|---|
TabularData |
getAcceptorAddresses() |
String |
getHostName()
Get the host name of the connector.
|
TabularData |
getLoggedOnSessions() |
int |
getQueueSize()
The size of the underlying event queue
|
String |
getRole()
The connection role.
|
TabularData |
getSessions()
Get all session who may be connected through this connector.
|
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
stop()
Stop the connector after waiting for logouts.
|
void |
stop(boolean force)
Stop the connector.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHostName, getRole, getSessions, stop, stopprotected static final TabularDataAdapter TABULAR_DATA_ADAPTER
public static final String ACCEPTOR_ROLE
public static final String INITIATOR_ROLE
protected final SessionJmxExporter sessionExporter
public SocketAcceptorAdmin(JmxExporter jmxExporter, AbstractSocketAcceptor connector, ObjectName connectorName, SessionJmxExporter sessionExporter)
public TabularData getAcceptorAddresses() throws IOException
getAcceptorAddresses in interface SocketAcceptorAdminMBeanIOExceptionpublic int getQueueSize()
ConnectorAdminMBeangetQueueSize in interface ConnectorAdminMBeanpublic String getRole()
ConnectorAdminMBeangetRole in interface ConnectorAdminMBeanpublic TabularData getSessions() throws IOException
ConnectorAdminMBeangetSessions in interface ConnectorAdminMBeanIOExceptionpublic TabularData getLoggedOnSessions() throws OpenDataException
OpenDataExceptionpublic void stop(boolean force)
ConnectorAdminMBeanstop in interface ConnectorAdminMBeanforce - don't wait for normal logout from counterpartypublic String getHostName()
ConnectorAdminMBeangetHostName in interface ConnectorAdminMBeanpublic void stop()
ConnectorAdminMBeanstop in interface ConnectorAdminMBeanpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistrationCopyright © 2021. All rights reserved.