Initialize Aerospike client.
The client policy is used to set defaults and size internal data structures.
If the host connection succeeds, the client will:
Namespace: Aerospike.Client- Add host to the cluster map
- Request host's list of other nodes in cluster
- Add these nodes to cluster map
If the connection succeeds, the client is ready to process database requests. If the connection fails and the policy's failOnInvalidHosts is true, a connection exception will be thrown. Otherwise, the cluster will remain in a disconnected state until the server is activated.
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.1.0.0 (4.1.0)
Syntax
Parameters
- policy
- Type: Aerospike.Client ClientPolicy
client configuration parameters, pass in null for defaults
- hostname
- Type: System String
host name
- port
- Type: System Int32
host port
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if host connection fails |
See Also