Class ModelControllerClient.Factory

java.lang.Object
org.jboss.as.controller.client.ModelControllerClient.Factory
Enclosing interface:
ModelControllerClient

public static class ModelControllerClient.Factory extends Object
Factory methods for creating a ModelControllerClient.
  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • create

      public static ModelControllerClient create(InetAddress address, int port)
      Create a client instance for a remote address and port.
      Parameters:
      address - the address of the remote host
      port - the port
      Returns:
      A model controller client
    • create

      public static ModelControllerClient create(String protocol, InetAddress address, int port)
      Create a client instance for a remote address and port.
      Parameters:
      protocol - The prototcol to use. If this is remote+http or remote+https http upgrade will be used rather than the native remote protocol
      address - the address of the remote host
      port - the port
      Returns:
      A model controller client
    • create

      public static ModelControllerClient create(InetAddress address, int port, CallbackHandler handler)
      Create a client instance for a remote address and port.
      Parameters:
      address - the address of the remote host
      port - the port
      handler - CallbackHandler to obtain authentication information for the call.
      Returns:
      A model controller client
    • create

      public static ModelControllerClient create(String protocol, InetAddress address, int port, CallbackHandler handler)
      Create a client instance for a remote address and port.
      Parameters:
      protocol - The prototcol to use. If this is remote+http or remote+https http upgrade will be used rather than the native remote protocol
      address - the address of the remote host
      port - the port
      handler - CallbackHandler to obtain authentication information for the call.
      Returns:
      A model controller client
    • create

      public static ModelControllerClient create(String hostName, int port) throws UnknownHostException
      Create a client instance for a remote address and port.
      Parameters:
      hostName - the remote host
      port - the port
      Returns:
      A model controller client
      Throws:
      UnknownHostException - if the host cannot be found
    • create

      public static ModelControllerClient create(String protocol, String hostName, int port) throws UnknownHostException
      Create a client instance for a remote address and port.
      Parameters:
      protocol - The prototcol to use. If this is remote+http or remote+https http upgrade will be used rather than the native remote protocol
      hostName - the remote host
      port - the port
      Returns:
      A model controller client
      Throws:
      UnknownHostException - if the host cannot be found
    • create

      public static ModelControllerClient create(String hostName, int port, CallbackHandler handler) throws UnknownHostException
      Create a client instance for a remote address and port and CallbackHandler.
      Parameters:
      hostName - the remote host
      port - the port
      handler - CallbackHandler to obtain authentication information for the call.
      Returns:
      A model controller client
      Throws:
      UnknownHostException - if the host cannot be found
    • create

      public static ModelControllerClient create(String protocol, String hostName, int port, CallbackHandler handler) throws UnknownHostException
      Create a client instance for a remote address and port and CallbackHandler.
      Parameters:
      protocol - The prototcol to use. If this is remote+http or remote+https http upgrade will be used rather than the native remote protocol
      hostName - the remote host
      port - the port
      handler - CallbackHandler to obtain authentication information for the call.
      Returns:
      A model controller client
      Throws:
      UnknownHostException - if the host cannot be found
    • create

      public static ModelControllerClient create(ModelControllerClientConfiguration configuration)
      Create a client instance based on the client configuration.
      Parameters:
      configuration - the controller client configuration
      Returns:
      the client