Class SeedNodesRequest

java.lang.Object
com.couchbase.client.core.message.AbstractCouchbaseRequest
com.couchbase.client.core.message.cluster.SeedNodesRequest
All Implemented Interfaces:
ClusterRequest, CouchbaseMessage, CouchbaseRequest

public class SeedNodesRequest
extends AbstractCouchbaseRequest
implements ClusterRequest
**Set up the bootstrap nodes for a ClusterFacade.** For stability reasons, it is advised to always provide more than one seed node (but not necessarily all nodes from the cluster) so that the cluster can correctly bootstrap the bucket, even if one of the hosts in the list is currently not available.
Since:
1.0
Author:
Michael Nitschinger
  • Constructor Details

    • SeedNodesRequest

      public SeedNodesRequest()
      Creates a SeedNodesRequest with the default hostname ("localhost").
    • SeedNodesRequest

      public SeedNodesRequest​(String... nodes)
      Creates a SeedNodesRequest with the given hostnames.
      Parameters:
      nodes - the seed node hostnames.
    • SeedNodesRequest

      public SeedNodesRequest​(List<String> nodes)
      Creates a SeedNodesRequest with the given list of hostnames.
      Parameters:
      nodes - the seed node hostnames.
  • Method Details

    • nodes

      public Set<String> nodes()
      Returns the set list of seed hostnames.
      Returns:
      the list of hostnames.