Package org.jboss.as.controller.client
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 aModelControllerClient.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelControllerClientcreate(String hostName, int port)Create 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(String protocol, String hostName, int port)Create 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.
-
-
-
Method Detail
-
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 hostport- 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 protocoladdress- the address of the remote hostport- 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 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
public static ModelControllerClient create(String hostName, int port) throws UnknownHostException
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
public static ModelControllerClient create(ModelControllerClientConfiguration configuration)
Create a client instance based on the client configuration.- Parameters:
configuration- the controller client configuration- Returns:
- the client
-
-