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 JMXConnector
IOException
SecurityException
public void connect(Map<String,?> env) throws IOException, SecurityException
connect
in interface JMXConnector
IOException
SecurityException
public MBeanServerConnection getMBeanServerConnection() throws IOException
getMBeanServerConnection
in interface JMXConnector
IOException
public MBeanServerConnection getMBeanServerConnection(Subject delegationSubject) throws IOException
getMBeanServerConnection
in interface JMXConnector
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface JMXConnector
IOException
public void addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws NullPointerException
addConnectionNotificationListener
in interface JMXConnector
NullPointerException
public void removeConnectionNotificationListener(NotificationListener listener) throws ListenerNotFoundException, NullPointerException
removeConnectionNotificationListener
in interface JMXConnector
ListenerNotFoundException
NullPointerException
public void removeConnectionNotificationListener(NotificationListener l, NotificationFilter f, Object handback) throws ListenerNotFoundException
removeConnectionNotificationListener
in interface JMXConnector
ListenerNotFoundException
public String getConnectionId() throws IOException
getConnectionId
in interface JMXConnector
IOException
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.