Class 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 Detail

      • 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 Detail

      • nodes

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