CitrusleafClient AddHost Method Aerospike
Add a host to the client's cluster map. The following actions occur upon the first invocation of this method:
  • Create new cluster map.
  • Add host to cluster map.
  • Connect to host server.
  • Request host's list of other nodes in the cluster.
  • Add these nodes to the cluster map.
Further invocations will add hosts to the cluster map if they don't already exist. In most cases, only one AddHost() call is necessary. When this call succeeds, the client is ready to process database requests.

Namespace: net.citrusleaf
Assembly: CitrusleafLibrary (in CitrusleafLibrary.dll) Version: 2.0.0.0 (2.0.23.86)
Syntax

Parameters

host
Type: OnlineSystem String
Host name.
port
Type: OnlineSystem Int32
Host port.
ipMapping (Optional)
Type: OnlineSystem.Collections.Generic Dictionary OnlineString, OnlineString 
Optional host name/IP address mapping. Use in cases where DNS lookups are not desirable.

Return Value

Result status.
See Also