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 Summary
Constructors Constructor Description SeedNodesRequest()
Creates aSeedNodesRequest
with the default hostname ("localhost").SeedNodesRequest(String... nodes)
Creates aSeedNodesRequest
with the given hostnames.SeedNodesRequest(List<String> nodes)
Creates aSeedNodesRequest
with the given list of hostnames. -
Method Summary
Methods inherited from class com.couchbase.client.core.message.AbstractCouchbaseRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.message.CouchbaseMessage
creationTime
Methods inherited from interface com.couchbase.client.core.message.CouchbaseRequest
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
-
Constructor Details
-
SeedNodesRequest
public SeedNodesRequest()Creates aSeedNodesRequest
with the default hostname ("localhost"). -
SeedNodesRequest
Creates aSeedNodesRequest
with the given hostnames.- Parameters:
nodes
- the seed node hostnames.
-
SeedNodesRequest
Creates aSeedNodesRequest
with the given list of hostnames.- Parameters:
nodes
- the seed node hostnames.
-
-
Method Details
-
nodes
Returns the set list of seed hostnames.- Returns:
- the list of hostnames.
-