Package org.jppf.jmxremote
Class JPPFJMXConnector
java.lang.Object
org.jppf.jmxremote.JPPFJMXConnector
- All Implemented Interfaces:
Closeable,AutoCloseable,JMXConnector
Implementation of the
JMXConnector interface for the JPPF JMX remote connector.- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from interface javax.management.remote.JMXConnector
CREDENTIALS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) voidclose()voidconnect()voidgetMBeanServerConnection(Subject delegationSubject) voidhandleNotification(JMXNotification jmxNotification) Handle a new received notification.voidvoidremoveConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) toString()
-
Constructor Details
-
JPPFJMXConnector
- Parameters:
serviceURL- the address of this connector.environment- the environment for this connector.
-
-
Method Details
-
connect
- Specified by:
connectin interfaceJMXConnector- Throws:
IOException
-
connect
- Specified by:
connectin interfaceJMXConnector- Throws:
IOException
-
getMBeanServerConnection
- Specified by:
getMBeanServerConnectionin interfaceJMXConnector- Throws:
IOException
-
getMBeanServerConnection
- Specified by:
getMBeanServerConnectionin interfaceJMXConnector- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceJMXConnector- Throws:
IOException
-
addConnectionNotificationListener
public void addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addConnectionNotificationListenerin interfaceJMXConnector
-
removeConnectionNotificationListener
public void removeConnectionNotificationListener(NotificationListener listener) throws ListenerNotFoundException - Specified by:
removeConnectionNotificationListenerin interfaceJMXConnector- Throws:
ListenerNotFoundException
-
removeConnectionNotificationListener
public void removeConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException - Specified by:
removeConnectionNotificationListenerin interfaceJMXConnector- Throws:
ListenerNotFoundException
-
getConnectionId
- Specified by:
getConnectionIdin interfaceJMXConnector- Throws:
IOException
-
getEnvironment
- Returns:
- the environment for this connector.
-
getAddress
- Returns:
- the address of this connector.
-
handleNotification
Handle a new received notification.- Parameters:
jmxNotification- the notification message to process.- Throws:
Exception- if any error occurs.
-
toString
-