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, wait
getHostName, getRole, getSessions, stop, stop
protected 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 SocketAcceptorAdminMBean
IOException
public int getQueueSize()
ConnectorAdminMBean
getQueueSize
in interface ConnectorAdminMBean
public String getRole()
ConnectorAdminMBean
getRole
in interface ConnectorAdminMBean
public TabularData getSessions() throws IOException
ConnectorAdminMBean
getSessions
in interface ConnectorAdminMBean
IOException
public TabularData getLoggedOnSessions() throws OpenDataException
OpenDataException
public void stop(boolean force)
ConnectorAdminMBean
stop
in interface ConnectorAdminMBean
force
- don't wait for normal logout from counterpartypublic String getHostName()
ConnectorAdminMBean
getHostName
in interface ConnectorAdminMBean
public void stop()
ConnectorAdminMBean
stop
in interface ConnectorAdminMBean
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
Copyright © 2021. All rights reserved.