@Experimental public class DriverFactory extends java.lang.Object
Constructor and Description |
---|
DriverFactory() |
Modifier and Type | Method and Description |
---|---|
DriverFactory |
addLocator(java.lang.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.
|
public DriverFactory addLocator(java.lang.String host, int port)
host
and port
to the set of locators to use.host
- Internet address or host name.port
- Port number.public Driver create() throws java.lang.Exception
java.lang.Exception