public class OpendsJmxConnector extends Object implements JMXConnector
Note that the javadoc has been copied from the javax.management.remote.JMXConnector interface.
CREDENTIALS| Constructor and Description |
|---|
OpendsJmxConnector(String serverHostname,
int serverPort,
Map<String,Object> environment)
Creates a connector client for the connector server at the
given host and port.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
void |
close() |
void |
connect() |
void |
connect(Map<String,?> env) |
Map<String,Object> |
getConnectionEnv()
Returns the connection environment.
|
String |
getConnectionId() |
MBeanServerConnection |
getMBeanServerConnection() |
MBeanServerConnection |
getMBeanServerConnection(Subject delegationSubject) |
void |
removeConnectionNotificationListener(NotificationListener listener) |
void |
removeConnectionNotificationListener(NotificationListener l,
NotificationFilter f,
Object handback) |
public OpendsJmxConnector(String serverHostname, int serverPort, Map<String,Object> environment) throws IOException
serverHostname - the target server hostnameserverPort - the target server portenvironment - a set of attributes to determine how the
connection is made. This parameter can be null. Keys in this
map must be Strings. The appropriate type of each associated
value depends on the attribute. The contents of
environment are not changed by this call.IOException - if the connector client cannot be made
because of a communication problem.public Map<String,Object> getConnectionEnv()
public void connect() throws IOException, SecurityException
connect in interface JMXConnectorIOExceptionSecurityExceptionpublic void connect(Map<String,?> env) throws IOException, SecurityException
connect in interface JMXConnectorIOExceptionSecurityExceptionpublic MBeanServerConnection getMBeanServerConnection() throws IOException
getMBeanServerConnection in interface JMXConnectorIOExceptionpublic MBeanServerConnection getMBeanServerConnection(Subject delegationSubject) throws IOException
getMBeanServerConnection in interface JMXConnectorIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface JMXConnectorIOExceptionpublic void addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws NullPointerException
addConnectionNotificationListener in interface JMXConnectorNullPointerExceptionpublic void removeConnectionNotificationListener(NotificationListener listener) throws ListenerNotFoundException, NullPointerException
removeConnectionNotificationListener in interface JMXConnectorListenerNotFoundExceptionNullPointerExceptionpublic void removeConnectionNotificationListener(NotificationListener l, NotificationFilter f, Object handback) throws ListenerNotFoundException
removeConnectionNotificationListener in interface JMXConnectorListenerNotFoundExceptionpublic String getConnectionId() throws IOException
getConnectionId in interface JMXConnectorIOExceptionCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.