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 Deprecated Methods Modifier and Type Method Description static ModelControllerClient
create(String hostName, int port)
Create a client instance for a remote address and port.static ModelControllerClient
create(String hostName, int port, CallbackHandler handler)
Create a client instance for a remote address and port and CallbackHandler.static ModelControllerClient
create(String hostName, int port, CallbackHandler handler, Map<String,String> saslOptions)
Deprecated.static ModelControllerClient
create(String hostName, int port, CallbackHandler handler, SSLContext sslContext)
Deprecated.static ModelControllerClient
create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout)
Deprecated.static ModelControllerClient
create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions)
Deprecated.static ModelControllerClient
create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions, String clientBindAddress)
Deprecated.static ModelControllerClient
create(String protocol, String hostName, int port)
Create a client instance for a remote address and port.static ModelControllerClient
create(String protocol, String hostName, int port, CallbackHandler handler)
Create a client instance for a remote address and port and CallbackHandler.static ModelControllerClient
create(String protocol, String hostName, int port, CallbackHandler handler, Map<String,String> saslOptions)
Deprecated.static ModelControllerClient
create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext)
Deprecated.static ModelControllerClient
create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout)
Deprecated.static ModelControllerClient
create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions)
Deprecated.static ModelControllerClient
create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions, String clientBindAddress)
Deprecated.static ModelControllerClient
create(String protocol, InetAddress address, int port)
Create a client instance for a remote address and port.static ModelControllerClient
create(String protocol, InetAddress address, int port, CallbackHandler handler)
Create a client instance for a remote address and port.static ModelControllerClient
create(String protocol, InetAddress address, int port, CallbackHandler handler, Map<String,String> saslOptions)
Deprecated.static ModelControllerClient
create(InetAddress address, int port)
Create a client instance for a remote address and port.static ModelControllerClient
create(InetAddress address, int port, CallbackHandler handler)
Create a client instance for a remote address and port.static ModelControllerClient
create(InetAddress address, int port, CallbackHandler handler, Map<String,String> saslOptions)
Deprecated.static ModelControllerClient
create(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
@Deprecated public static ModelControllerClient create(InetAddress address, int port, CallbackHandler handler, Map<String,String> saslOptions)
Deprecated.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.saslOptions
- Additional options to be passed to the SASL mechanism.- Returns:
- A model controller client
-
create
@Deprecated public static ModelControllerClient create(String protocol, InetAddress address, int port, CallbackHandler handler, Map<String,String> saslOptions)
Deprecated.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 usedaddress
- the address of the remote hostport
- the porthandler
- CallbackHandler to obtain authentication information for the call.saslOptions
- Additional options to be passed to the SASL mechanism.- 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
@Deprecated public static ModelControllerClient create(String hostName, int port, CallbackHandler handler, SSLContext sslContext) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContext- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContext- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContextconnectionTimeout
- maximum time, in milliseconds, to wait for the connection to be established- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContext- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContextconnectionTimeout
- maximum time, in milliseconds, to wait for the connection to be establishedsaslOptions
- Additional options to be passed to the SASL mechanism.- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContextconnectionTimeout
- maximum time, in milliseconds, to wait for the connection to be establishedsaslOptions
- Additional options to be passed to the SASL mechanism.- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions, String clientBindAddress) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContextconnectionTimeout
- maximum time, in milliseconds, to wait for the connection to be establishedsaslOptions
- Additional options to be passed to the SASL mechanism.clientBindAddress
- the address to which the client will bind.- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String protocol, String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions, String clientBindAddress) throws UnknownHostException
Deprecated.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.sslContext
- a pre-initialised SSLContextconnectionTimeout
- maximum time, in milliseconds, to wait for the connection to be establishedsaslOptions
- Additional options to be passed to the SASL mechanism.clientBindAddress
- the address to which the client will bind.- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String hostName, int port, CallbackHandler handler, Map<String,String> saslOptions) throws UnknownHostException
Deprecated.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.saslOptions
- Additional options to be passed to the SASL mechanism.- Returns:
- A model controller client
- Throws:
UnknownHostException
- if the host cannot be found
-
create
@Deprecated public static ModelControllerClient create(String protocol, String hostName, int port, CallbackHandler handler, Map<String,String> saslOptions) throws UnknownHostException
Deprecated.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.saslOptions
- Additional options to be passed to the SASL mechanism.- 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
-
-