public static class ModelControllerClientConfiguration.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ModelControllerClientConfiguration |
build()
Builds the configuration object based on this builder's settings.
|
ModelControllerClientConfiguration.Builder |
setAuthenticationConfigUri(URI authConfigUri)
Set the location of the authentication configuration file.
|
ModelControllerClientConfiguration.Builder |
setClientBindAddress(String clientBindAddress)
Sets the local address to which the client socket should be bound.
|
ModelControllerClientConfiguration.Builder |
setConnectionTimeout(int connectionTimeout)
Maximum time, in milliseconds, to wait for the connection to be established
|
ModelControllerClientConfiguration.Builder |
setHandler(CallbackHandler handler)
Sets the handler for callbacks to obtain authentication information.
|
ModelControllerClientConfiguration.Builder |
setHostName(String hostName)
Sets the remote host name to which the client should connect.
|
ModelControllerClientConfiguration.Builder |
setPort(int port)
Sets the remote port to which the client should connect
|
ModelControllerClientConfiguration.Builder |
setProtocol(String protocol)
Sets the protocol to use for communicating with the remote process.
|
ModelControllerClientConfiguration.Builder |
setSaslOptions(Map<String,String> saslOptions)
Sets the SASL options for the remote connection
|
ModelControllerClientConfiguration.Builder |
setSslContext(SSLContext sslContext)
Sets the SSL context for the remote connection
|
public ModelControllerClientConfiguration.Builder setHostName(String hostName)
hostName - the host name. Cannot be nullpublic ModelControllerClientConfiguration.Builder setClientBindAddress(String clientBindAddress)
clientBindAddress - the local address, or null to choose one automaticallypublic ModelControllerClientConfiguration.Builder setPort(int port)
port - the portpublic ModelControllerClientConfiguration.Builder setHandler(CallbackHandler handler)
handler - the handler, or null if callbacks are not supported.public ModelControllerClientConfiguration.Builder setSaslOptions(Map<String,String> saslOptions)
saslOptions - the sasl optionspublic ModelControllerClientConfiguration.Builder setSslContext(SSLContext sslContext)
sslContext - the SSL contextpublic ModelControllerClientConfiguration.Builder setProtocol(String protocol)
protocol - the protocol, or null if a default protocol for the
specified port should be usedpublic ModelControllerClientConfiguration.Builder setConnectionTimeout(int connectionTimeout)
connectionTimeout - the timeoutpublic ModelControllerClientConfiguration.Builder setAuthenticationConfigUri(URI authConfigUri)
authConfigUri - the location to the authentication configuration file or null to use auto
discoverypublic ModelControllerClientConfiguration build()
Copyright © 2017 JBoss by Red Hat. All rights reserved.