Package org.jppf.management
Interface JMXServer
- All Known Implementing Classes:
AbstractJMXServer,JMXMPServer,JPPFJMXServer
public interface JMXServer
Interface for JMX remote servers associated to drivers and nodes.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionGet the JMX connector server.Get the environment used at the creation of this server.Get the host interface on which the JMX server is listeneing for connections.intGet the port on which the connector is listening for connections from remote clients.Get a reference to the MBean server.Get an optionalMBeanServerForwarderassociated with the underlying remote connector server.getUuid()Get a unique identifier for this management server.booleanDetermine whether this JMX server is stopped.voidstart(ClassLoader cl) Start the MBean server and associated resources.voidstop()Stop the MBean server and associated resources.
-
Method Details
-
start
Start the MBean server and associated resources.- Parameters:
cl- - the default classloader to be used by the JMX remote connector.- Throws:
Exception- if an error occurs when starting the server or one of its components.
-
stop
Stop the MBean server and associated resources.- Throws:
Exception- if an error occurs when stopping the server or one of its components.
-
getMBeanServer
MBeanServer getMBeanServer()Get a reference to the MBean server.- Returns:
- an
MBeanServerinstance.
-
isStopped
boolean isStopped()Determine whether this JMX server is stopped.- Returns:
trueif this JMX server is stopped,falseotherwise.
-
getUuid
String getUuid()Get a unique identifier for this management server. This id must be unique across JPPF nodes and servers.- Returns:
- the id as a string.
-
getManagementHost
String getManagementHost()Get the host interface on which the JMX server is listeneing for connections.- Returns:
- the host as a string.
-
getManagementPort
int getManagementPort()Get the port on which the connector is listening for connections from remote clients.- Returns:
- the port number as an int.
-
getMBeanServerForwarder
MBeanServerForwarder getMBeanServerForwarder()Get an optionalMBeanServerForwarderassociated with the underlying remote connector server.- Returns:
- an
MBeanServerForwarderinstance, ornullif node is associated with this jmx server.
-
getConnectorServer
JMXConnectorServer getConnectorServer()Get the JMX connector server.- Returns:
- a
JMXConnectorServerinstance.
-
getEnvironment
Get the environment used at the creation of this server.- Returns:
- a JMX environment map.
-