Class JMXServerFactory

java.lang.Object
org.jppf.management.JMXServerFactory

public class JMXServerFactory extends Object
This class provides factory methods to create rmeorte JMX connector servers.
Author:
Laurent Cohen
  • 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 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.
      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.