public final class ROConnectorServer extends JMXConnectorServer
A JMX API connector server that creates Remote Object based connections
from remote clients. Usually, such connector servers are made
using JMXConnectorServerFactory
. However, specialized applications can
use this class directly, for example with an ROServerImpl
object.
AUTHENTICATOR
Constructor and Description |
---|
ROConnectorServer(JMXServiceURL url,
Map<String,?> environment)
Creates a ROConnectorServer
|
ROConnectorServer(JMXServiceURL url,
Map<String,?> environment,
MBeanServer mbeanServer)
Creates a ROConnectorServer
|
ROConnectorServer(JMXServiceURL url,
Map<String,?> environment,
ROServerImpl roServer,
MBeanServer mbeanServer)
Creates a ROConnectorServer
|
Modifier and Type | Method and Description |
---|---|
JMXServiceURL |
getAddress()
The address of this connector server.
|
Map<String,Object> |
getAttributes()
Returns the attributes of this connector.
|
boolean |
isActive()
Determines whether the connector server is active.
|
void |
start()
Activates the connector server, that is starts listening for client connections.
|
void |
stop()
Deactivates the connector server, that is, stops listening for client connections.
|
connectionClosed, connectionFailed, connectionOpened, getConnectionIds, getMBeanServer, getNotificationInfo, postDeregister, postRegister, preDeregister, preRegister, setMBeanServerForwarder, toJMXConnector
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
public ROConnectorServer(JMXServiceURL url, Map<String,?> environment) throws IOException
url
- The connector URLenvironment
- the connector environment, i.e., the package location of the ServerProviderIOException
public ROConnectorServer(JMXServiceURL url, Map<String,?> environment, MBeanServer mbeanServer) throws IOException
url
- The connector URLenvironment
- the connector environment, i.e., the package location of the ServerProvidermbeanServer
- the MBean server bound with the connectorIOException
public ROConnectorServer(JMXServiceURL url, Map<String,?> environment, ROServerImpl roServer, MBeanServer mbeanServer) throws IOException
url
- The connector URLenvironment
- the connector environment, i.e., the package location of the ServerProviderroServer
- the Remote Object JMX ServermbeanServer
- the MBean server bound with the connectorIOException
public void start() throws IOException
IOException
public void stop() throws IOException
IOException
public boolean isActive()
public JMXServiceURL getAddress()