| Package | Description |
|---|---|
| com.couchbase.client.core | |
| com.couchbase.client.core.node |
| Modifier and Type | Method and Description |
|---|---|
protected Node |
Core.createNode(NodeIdentifier identifier,
Optional<String> alternateAddress)
Create a
Node from the given identifier. |
| Modifier and Type | Method and Description |
|---|---|
static Node |
Node.create(CoreContext ctx,
NodeIdentifier identifier,
Optional<String> alternateAddress) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
RoundRobinLocator.nodeCanBeUsed(Node node,
Request<? extends Response> request,
ClusterConfig config)
This method can be overridden for additional per-node checks in addition to the service-type
based check already performed in
RoundRobinLocator.filterNodes(List, Request, ClusterConfig). |
protected boolean |
ViewLocator.nodeCanBeUsed(Node node,
Request<? extends Response> request,
ClusterConfig config)
In addition to checking that the view service is enabled, for view dispatching it is vital that
a request is only ever sent to a node which has active primary KV partitions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RoundRobinLocator.dispatch(Request<? extends Response> request,
List<Node> nodes,
ClusterConfig config,
CoreContext ctx) |
void |
KeyValueLocator.dispatch(Request<? extends Response> request,
List<Node> nodes,
ClusterConfig config,
CoreContext ctx) |
void |
Locator.dispatch(Request<? extends Response> request,
List<Node> nodes,
ClusterConfig config,
CoreContext ctx)
Given the environment and node information, the implementation locates the right set of
nodes and dispatches the request into them.
|
Copyright © 2024 Couchbase, Inc.. All rights reserved.