public class JPPFJMXConnector extends Object implements JMXConnector
JMXConnector interface for the JPPF JMX remote connector.CREDENTIALS| Constructor and Description |
|---|
JPPFJMXConnector(JMXServiceURL serviceURL,
Map<String,?> environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
void |
close() |
void |
connect() |
void |
connect(Map<String,?> env) |
JMXServiceURL |
getAddress() |
String |
getConnectionId() |
Map<String,?> |
getEnvironment() |
MBeanServerConnection |
getMBeanServerConnection() |
MBeanServerConnection |
getMBeanServerConnection(Subject delegationSubject) |
void |
handleNotification(JMXNotification jmxNotification)
Handle a new received notification.
|
void |
removeConnectionNotificationListener(NotificationListener listener) |
void |
removeConnectionNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
public JPPFJMXConnector(JMXServiceURL serviceURL, Map<String,?> environment)
serviceURL - the address of this connector.environment - the environment for this connector.public void connect()
throws IOException
connect in interface JMXConnectorIOExceptionpublic void connect(Map<String,?> env) throws IOException
connect in interface JMXConnectorIOExceptionpublic 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)
addConnectionNotificationListener in interface JMXConnectorpublic void removeConnectionNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeConnectionNotificationListener in interface JMXConnectorListenerNotFoundExceptionpublic void removeConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeConnectionNotificationListener in interface JMXConnectorListenerNotFoundExceptionpublic String getConnectionId() throws IOException
getConnectionId in interface JMXConnectorIOExceptionpublic JMXServiceURL getAddress()
public void handleNotification(JMXNotification jmxNotification) throws Exception
jmxNotification - the notification message to process.Exception - if any error occurs.Copyright © 2005-2018 JPPF Team.