Package org.voltdb.client
Class ClientFactory
java.lang.Object
org.voltdb.client.ClientFactory
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ClientCreate aClientwith no connections and all default options.static Client2createClient(Client2Config config) Create a "version 2" client,Client2.static ClientcreateClient(ClientConfig config) Create a "version 1" client,Client.static voidInternally used by the VoltDB server during initialization.
- 
Constructor Details- 
ClientFactorypublic ClientFactory()
 
- 
- 
Method Details- 
createClientCreate aClientwith no connections and all default options. Authentication will use a blank username and password.- Returns:
- Newly constructed Client
 
- 
createClientCreate a "version 1" client,Client.Using a ClientConfigobject ensures that a client application is isolated from changes to the configuration options. Authentication credentials are provided via the configuration object.- Parameters:
- config- A- ClientConfigobject
- Returns:
- A configured Client
 
- 
createClientCreate a "version 2" client,Client2.This call takes a Client2Configargument, which distinguishes it fromcreateClient(ClientConfig).All client options, including authentication information, are provided via the Client2Configobject.- Parameters:
- config- A- Client2Configobject
- Returns:
- A configured Client2
 
- 
preserveResourcespublic static void preserveResources()Internally used by the VoltDB server during initialization.This method is intended to ensure that the resources needed to create clients are always initialized and won't be released when the active client count goes to zero. 
 
-