Package org.jboss.as.controller.client
Class ModelControllerClient.Factory
java.lang.Object
org.jboss.as.controller.client.ModelControllerClient.Factory
- Enclosing interface:
- ModelControllerClient
Factory methods for creating a
ModelControllerClient.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelControllerClientCreate a client instance for a remote address and port.static ModelControllerClientcreate(String hostName, int port, CallbackHandler handler) Create a client instance for a remote address and port and CallbackHandler.static ModelControllerClientCreate a client instance for a remote address and port.static ModelControllerClientcreate(String protocol, String hostName, int port, CallbackHandler handler) Create a client instance for a remote address and port and CallbackHandler.static ModelControllerClientcreate(String protocol, InetAddress address, int port) Create a client instance for a remote address and port.static ModelControllerClientcreate(String protocol, InetAddress address, int port, CallbackHandler handler) Create a client instance for a remote address and port.static ModelControllerClientcreate(InetAddress address, int port) Create a client instance for a remote address and port.static ModelControllerClientcreate(InetAddress address, int port, CallbackHandler handler) Create a client instance for a remote address and port.static ModelControllerClientcreate(ModelControllerClientConfiguration configuration) Create a client instance based on the client configuration.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
create
Create a client instance for a remote address and port.- Parameters:
address- the address of the remote hostport- the port- Returns:
- A model controller client
-
create
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 protocoladdress- the address of the remote hostport- the port- Returns:
- A model controller client
-
create
Create a client instance for a remote address and port.- Parameters:
address- the address of the remote hostport- the porthandler- 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 protocoladdress- the address of the remote hostport- the porthandler- CallbackHandler to obtain authentication information for the call.- Returns:
- A model controller client
-
create
Create a client instance for a remote address and port.- Parameters:
hostName- the remote hostport- 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 protocolhostName- the remote hostport- 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 hostport- the porthandler- 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 protocolhostName- the remote hostport- the porthandler- CallbackHandler to obtain authentication information for the call.- Returns:
- A model controller client
- Throws:
UnknownHostException- if the host cannot be found
-
create
Create a client instance based on the client configuration.- Parameters:
configuration- the controller client configuration- Returns:
- the client
-