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.
Constructor and Description |
---|
SeedNodesRequest()
Creates a
SeedNodesRequest with the default hostname (“localhost”). |
SeedNodesRequest(List<String> nodes)
Creates a
SeedNodesRequest with the given list of hostnames. |
SeedNodesRequest(String... nodes)
Creates a
SeedNodesRequest with the given hostnames. |
Modifier and Type | Method and Description |
---|---|
Set<NetworkAddress> |
nodes()
Returns the set list of seed hostnames.
|
afterSpanSet, bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
creationTime
public SeedNodesRequest()
Creates a SeedNodesRequest
with the default hostname (“localhost”).
public SeedNodesRequest(String... nodes)
Creates a SeedNodesRequest
with the given hostnames.
nodes
- the seed node hostnames.public SeedNodesRequest(List<String> nodes)
Creates a SeedNodesRequest
with the given list of hostnames.
nodes
- the seed node hostnames.public Set<NetworkAddress> nodes()
Returns the set list of seed hostnames.
Copyright © 2018 Couchbase, Inc.. All rights reserved.