Package org.jppf.management
Class JMXServerFactory
java.lang.Object
org.jppf.management.JMXServerFactory
This class provides factory methods to create rmeorte JMX connector servers.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JMXServercreateServer(TypedProperties config, String uuid, boolean ssl, JPPFProperty<Integer> portProperty) Create a JMXServer instance based on the specified parameters.static JMXServercreateServer(TypedProperties config, String uuid, boolean ssl, JPPFProperty<Integer> portProperty, MBeanServer mbeanServer) Create a JMXServer instance based on the specified parameters.static JMXServercreateServer(TypedProperties config, String uuid, boolean ssl, JPPFProperty<Integer> portProperty, MBeanServer mbeanServer, Map<String, Object> mandatoryEnv) Create a JMXServer instance based on the specified parameters.
-
Constructor Details
-
JMXServerFactory
public JMXServerFactory()
-
-
Method Details
-
createServer
public static JMXServer createServer(TypedProperties config, String uuid, boolean ssl, JPPFProperty<Integer> portProperty, MBeanServer mbeanServer, Map<String, Object> mandatoryEnv) throws ExceptionCreate a JMXServer instance based on the specified parameters.- Parameters:
config- the configuration to use.uuid- the server's unique identifier.ssl- specifies whether JMX should be used over an SSL/TLS connection.portProperty- an ordered set of configuration properties to use for looking up the desired management port.mbeanServer- the mbean server to use.mandatoryEnv- environment properties to pass tot he JMX connector server.- Returns:
- an instance of
JMXServer. - Throws:
Exception- if the server could not be created.
-
createServer
public static JMXServer createServer(TypedProperties config, String uuid, boolean ssl, JPPFProperty<Integer> portProperty, MBeanServer mbeanServer) throws Exception Create a JMXServer instance based on the specified parameters.- Parameters:
config- the configuration to use.uuid- the server's unique identifier.ssl- specifies whether JMX should be used over an SSL/TLS connection.portProperty- an ordered set of configuration properties to use for looking up the desired management port.mbeanServer- the mbean server to use.- Returns:
- an instance of
JMXServer. - Throws:
Exception- if the server could not be created.
-
createServer
public static JMXServer createServer(TypedProperties config, String uuid, boolean ssl, JPPFProperty<Integer> portProperty) throws Exception Create a JMXServer instance based on the specified parameters.- Parameters:
config- the configuration to use.uuid- the server's unique identifier.ssl- specifies whether JMX should be used over an SSL/TLS connection.portProperty- an ordered set of configuration properties to use for looking up the desired management port.- Returns:
- an instance of
JMXServer. - Throws:
Exception- if the server could not be created.
-