@Experimental public class DriverFactory extends Object
Constructor and Description |
---|
DriverFactory() |
Modifier and Type | Method and Description |
---|---|
DriverFactory |
addLocator(String host,
int port)
Adds a locator at
host and port to the set of locators to use. |
Driver |
create()
Creates a driver configured to use all the locators about which this driver factory knows.
|
DriverFactory |
setCiphers(String ciphers)
Specifies the cipher suites to enable.
|
DriverFactory |
setKeyStorePath(String keyStorePath)
Specifies the key store to use with SSL.
|
DriverFactory |
setPassword(String password)
Specifies the password with which to authenticate with the server.
|
DriverFactory |
setProtocols(String protocols)
Specifies the protocols to enable.
|
DriverFactory |
setTrustStorePath(String trustStorePath)
Specifies the trust store to use with SSL.
|
DriverFactory |
setUsername(String username)
Specifies the user name with which to authenticate with the server.
|
DriverFactory |
setValueSerializer(ValueSerializer serializer) |
public DriverFactory addLocator(String host, int port)
host
and port
to the set of locators to use.host
- Internet address or host name.port
- Port number.public DriverFactory setUsername(String username)
username
- User identity as a string; may be null
.public DriverFactory setPassword(String password)
password
- User proof as a string; may be null
.public DriverFactory setKeyStorePath(String keyStorePath)
keyStorePath
- Path to the SSL key store.public DriverFactory setTrustStorePath(String trustStorePath)
trustStorePath
- Path to the SSL trust store.public DriverFactory setProtocols(String protocols)
protocols
- Space-separated list of the SSL protocols to enable.public DriverFactory setCiphers(String ciphers)
ciphers
- Space-separated list of the SSL cipher suites to enable.public Driver create() throws Exception
Exception
public DriverFactory setValueSerializer(ValueSerializer serializer)