public interface RhinoConnection extends MBeanServerConnection
Modifier and Type | Method and Description |
---|---|
void |
connect()
Try to connect this connection.
|
void |
disconnect()
Disconnect this connection.
|
boolean |
getConnectedState()
Whether or not this connection is connected.
|
JMXConnector |
getJmxConnector()
Get the JMXConnector associated with this MBeanServer connection.
|
String |
getServerHost()
The host name of the current connection.
|
int |
getServerNodeId()
The node ID of the server the current connection is to.
|
int |
getServerPort()
The port of the current connection.
|
RhinoVersion |
getServerRhinoVersion()
The version of Rhino this connection is to.
|
void |
reconnect()
Disconnect then connect this connection.
|
void |
setAllowedExecutionContext(ExecutionContext ctx)
Tell this connection to only allow particular connection contexts.
|
void |
setNamespace(String namespace)
Set the current Rhino namespace associated with this connection.
|
void |
testConnection()
Test this connection by invoking a basic MBean operation.
|
addNotificationListener, addNotificationListener, createMBean, createMBean, createMBean, createMBean, getAttribute, getAttributes, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, removeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean
void connect() throws ConnectionException
ConnectionException
- if the connection attempt failedvoid disconnect()
void reconnect() throws ConnectionException
ConnectionException
- if the connection attempt failedvoid testConnection() throws ConnectionException
ConnectionException
- if the test failed and the attempt to automatically reconnect failed.JMXConnector getJmxConnector()
boolean getConnectedState()
String getServerHost()
int getServerPort()
int getServerNodeId()
RhinoVersion getServerRhinoVersion()
void setAllowedExecutionContext(ExecutionContext ctx)
ExecutionContext
for more details.ctx
- the context to allowvoid setNamespace(String namespace)
namespace
- the namespace. May be null
to indicate the default namespace.