Package org.jppf.jmxremote
Class JPPFJMXConnectorServer
java.lang.Object
javax.management.NotificationBroadcasterSupport
javax.management.remote.JMXConnectorServer
org.jppf.jmxremote.JPPFJMXConnectorServer
- All Implemented Interfaces:
EventListener,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,JMXAddressable,JMXConnectorServerMBean,JMXConnectionStatusListener
public class JPPFJMXConnectorServer
extends JMXConnectorServer
implements JMXConnectionStatusListener
Concrete subclass of the
JMXConnectorServer class for the JPPF JMX remote connector server.- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe environment key for theauthorization checker.static final StringThe environment key for the MBean server.Fields inherited from class javax.management.remote.JMXConnectorServer
AUTHENTICATOR -
Constructor Summary
ConstructorsConstructorDescriptionJPPFJMXConnectorServer(JMXServiceURL serviceURL, Map<String, ?> environment, MBeanServer mbeanServer) Initalize this connector server with the specified service URL, environemnt and MBean server. -
Method Summary
Methods inherited from class javax.management.remote.JMXConnectorServer
connectionClosed, connectionFailed, connectionOpened, getConnectionIds, getNotificationInfo, postDeregister, postRegister, preDeregister, preRegister, toJMXConnectorMethods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Field Details
-
AUTHORIZATION_CHECKER
The environment key for theauthorization checker.- See Also:
-
CONNECTOR_SERVER_KEY
The environment key for the MBean server.- See Also:
-
-
Constructor Details
-
JPPFJMXConnectorServer
public JPPFJMXConnectorServer(JMXServiceURL serviceURL, Map<String, ?> environment, MBeanServer mbeanServer) Initalize this connector server with the specified service URL, environemnt and MBean server.- Parameters:
serviceURL- the address of this connector.environment- the environment for this connector.mbeanServer- .
-
-
Method Details
-
start
- Specified by:
startin interfaceJMXConnectorServerMBean- Throws:
IOException
-
stop
- Specified by:
stopin interfaceJMXConnectorServerMBean- Throws:
IOException
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceJMXConnectorServerMBean
-
getAddress
- Specified by:
getAddressin interfaceJMXAddressable- Specified by:
getAddressin interfaceJMXConnectorServerMBean
-
getAttributes
- Specified by:
getAttributesin interfaceJMXConnectorServerMBean
-
connectionOpened
Description copied from interface:JMXConnectionStatusListenerCalled when a connection is opened.- Specified by:
connectionOpenedin interfaceJMXConnectionStatusListener- Parameters:
event- encapsulates the connection ID and Throwable information.
-
connectionClosed
Description copied from interface:JMXConnectionStatusListenerCalled when a connection is closed.- Specified by:
connectionClosedin interfaceJMXConnectionStatusListener- Parameters:
event- encapsulates the connection ID and Throwable information.
-
connectionFailed
Description copied from interface:JMXConnectionStatusListenerCalled when a connection fails.- Specified by:
connectionFailedin interfaceJMXConnectionStatusListener- Parameters:
event- encapsulates the connection ID and Throwable information.
-
setMBeanServerForwarder
- Specified by:
setMBeanServerForwarderin interfaceJMXConnectorServerMBean- Overrides:
setMBeanServerForwarderin classJMXConnectorServer
-
getMBeanServer
- Overrides:
getMBeanServerin classJMXConnectorServer
-