public class ClientConfigurationImpl extends Object implements ModelControllerClientConfiguration
Modifier | Constructor and Description |
---|---|
protected |
ClientConfigurationImpl(String address,
int port,
CallbackHandler handler,
Map<String,String> saslOptions,
SSLContext sslContext,
ExecutorService executorService) |
protected |
ClientConfigurationImpl(String address,
int port,
CallbackHandler handler,
Map<String,String> saslOptions,
SSLContext sslContext,
ExecutorService executorService,
boolean shutdownExecutor) |
protected |
ClientConfigurationImpl(String address,
int port,
CallbackHandler handler,
Map<String,String> saslOptions,
SSLContext sslContext,
ExecutorService executorService,
boolean shutdownExecutor,
int connectionTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static ModelControllerClientConfiguration |
create(InetAddress address,
int port) |
static ModelControllerClientConfiguration |
create(InetAddress address,
int port,
CallbackHandler handler) |
static ModelControllerClientConfiguration |
create(InetAddress address,
int port,
CallbackHandler handler,
Map<String,String> saslOptions) |
static ModelControllerClientConfiguration |
create(String hostName,
int port) |
static ModelControllerClientConfiguration |
create(String hostName,
int port,
CallbackHandler handler) |
static ModelControllerClientConfiguration |
create(String hostName,
int port,
CallbackHandler handler,
Map<String,String> saslOptions) |
static ModelControllerClientConfiguration |
create(String hostName,
int port,
CallbackHandler handler,
SSLContext sslContext) |
static ModelControllerClientConfiguration |
create(String hostName,
int port,
CallbackHandler handler,
SSLContext sslContext,
int connectionTimeout) |
static ModelControllerClientConfiguration |
create(String hostName,
int port,
CallbackHandler handler,
SSLContext sslContext,
int connectionTimeout,
Map<String,String> saslOptions) |
CallbackHandler |
getCallbackHandler()
Get the security callback handler.
|
int |
getConnectionTimeout()
Get the connection timeout when trying to connect to the server.
|
ExecutorService |
getExecutor()
Get the executor service used for the controller client.
|
String |
getHost()
Get the address of the remote host.
|
int |
getPort()
Get the port of the remote host.
|
Map<String,String> |
getSaslOptions()
Get the sasl options.
|
SSLContext |
getSSLContext()
Get the SSLContext.
|
protected ClientConfigurationImpl(String address, int port, CallbackHandler handler, Map<String,String> saslOptions, SSLContext sslContext, ExecutorService executorService)
protected ClientConfigurationImpl(String address, int port, CallbackHandler handler, Map<String,String> saslOptions, SSLContext sslContext, ExecutorService executorService, boolean shutdownExecutor)
protected ClientConfigurationImpl(String address, int port, CallbackHandler handler, Map<String,String> saslOptions, SSLContext sslContext, ExecutorService executorService, boolean shutdownExecutor, int connectionTimeout)
public String getHost()
ModelControllerClientConfiguration
getHost
in interface ModelControllerClientConfiguration
public int getPort()
ModelControllerClientConfiguration
getPort
in interface ModelControllerClientConfiguration
public CallbackHandler getCallbackHandler()
ModelControllerClientConfiguration
getCallbackHandler
in interface ModelControllerClientConfiguration
public Map<String,String> getSaslOptions()
ModelControllerClientConfiguration
getSaslOptions
in interface ModelControllerClientConfiguration
public SSLContext getSSLContext()
ModelControllerClientConfiguration
getSSLContext
in interface ModelControllerClientConfiguration
public int getConnectionTimeout()
ModelControllerClientConfiguration
getConnectionTimeout
in interface ModelControllerClientConfiguration
public ExecutorService getExecutor()
ModelControllerClientConfiguration
getExecutor
in interface ModelControllerClientConfiguration
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public static ModelControllerClientConfiguration create(InetAddress address, int port)
public static ModelControllerClientConfiguration create(InetAddress address, int port, CallbackHandler handler)
public static ModelControllerClientConfiguration create(InetAddress address, int port, CallbackHandler handler, Map<String,String> saslOptions)
public static ModelControllerClientConfiguration create(String hostName, int port) throws UnknownHostException
UnknownHostException
public static ModelControllerClientConfiguration create(String hostName, int port, CallbackHandler handler) throws UnknownHostException
UnknownHostException
public static ModelControllerClientConfiguration create(String hostName, int port, CallbackHandler handler, SSLContext sslContext) throws UnknownHostException
UnknownHostException
public static ModelControllerClientConfiguration create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout) throws UnknownHostException
UnknownHostException
public static ModelControllerClientConfiguration create(String hostName, int port, CallbackHandler handler, SSLContext sslContext, int connectionTimeout, Map<String,String> saslOptions) throws UnknownHostException
UnknownHostException
public static ModelControllerClientConfiguration create(String hostName, int port, CallbackHandler handler, Map<String,String> saslOptions) throws UnknownHostException
UnknownHostException
Copyright © 2018 JBoss by Red Hat. All rights reserved.