| Modifier and Type | Method and Description |
|---|---|
protected Node |
Core.createNode(NodeIdentifier identifier,
Optional<String> alternateAddress)
Create a
Node from the given identifier. |
Mono<Void> |
Core.ensureServiceAt(NodeIdentifier identifier,
ServiceType serviceType,
int port,
Optional<String> bucket,
Optional<String> alternateAddress)
This method can be used by a caller to make sure a certain service is enabled at the given
target node.
|
Optional<Flux<ServiceState>> |
Core.serviceState(NodeIdentifier nodeIdentifier,
ServiceType type,
Optional<String> bucket)
If present, returns a flux that allows to monitor the state changes of a specific service.
|
| Modifier and Type | Method and Description |
|---|---|
abstract NodeIdentifier |
CoreReactiveQueryResult.lastDispatchedTo() |
abstract NodeIdentifier |
CoreQueryResult.lastDispatchedTo()
The last node the request was dispatched to.
|
| Modifier and Type | Method and Description |
|---|---|
CoreAsyncResponse<CoreQueryResult> |
CoreQueryOps.queryAsync(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter) |
default CoreQueryResult |
CoreQueryOps.queryBlocking(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter)
Performs a query.
|
Mono<CoreReactiveQueryResult> |
CoreQueryOps.queryReactive(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter) |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
ClassicCoreQueryResult.lastDispatchedTo() |
NodeIdentifier |
ClassicCoreReactiveQueryResult.lastDispatchedTo() |
| Modifier and Type | Method and Description |
|---|---|
CoreAsyncResponse<CoreQueryResult> |
ClassicCoreQueryOps.queryAsync(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter) |
Mono<CoreReactiveQueryResult> |
ClassicCoreQueryOps.queryReactive(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter) |
| Constructor and Description |
|---|
ClassicCoreQueryResult(QueryChunkHeader header,
List<QueryChunkRow> rows,
QueryChunkTrailer trailer,
NodeIdentifier lastDispatchedToNode) |
ClassicCoreReactiveQueryResult(QueryResponse response,
NodeIdentifier lastDispatchedTo) |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
NodeInfo.identifier() |
NodeIdentifier |
PortInfo.identifier() |
NodeIdentifier |
MemcachedBucketConfig.nodeForId(byte[] id)
Deprecated.
Please use
MemcachedBucketConfig.nodeForKey(byte[]).identifier() instead. |
| Modifier and Type | Method and Description |
|---|---|
protected Mono<ProposedBucketConfigContext> |
DefaultConfigurationProvider.loadBucketConfigForSeed(NodeIdentifier identifier,
int mappedKvPort,
int mappedManagerPort,
String name,
Optional<String> alternateAddress)
Encapsulates the logic to load the bucket config from kv and then fall back to manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected Mono<byte[]> |
KeyValueBucketLoader.discoverConfig(NodeIdentifier seed,
String bucket) |
protected abstract Mono<byte[]> |
BaseBucketLoader.discoverConfig(NodeIdentifier seed,
String bucket)
To be implemented by the actual child, performs the actual fetching of a config.
|
protected Mono<byte[]> |
ClusterManagerBucketLoader.discoverConfig(NodeIdentifier seed,
String bucket) |
Mono<ProposedGlobalConfigContext> |
GlobalLoader.load(NodeIdentifier seed,
int port)
Tries to load the global configuration.
|
Mono<ProposedBucketConfigContext> |
BucketLoader.load(NodeIdentifier seed,
int port,
String bucket,
Optional<String> alternateAddress)
Attempts to load a config for the given seed node.
|
Mono<ProposedBucketConfigContext> |
BaseBucketLoader.load(NodeIdentifier seed,
int port,
String bucket,
Optional<String> alternateAddress)
Performs the config loading through multiple steps.
|
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
CoreHttpRequest.target() |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
RequestContext.lastDispatchedToNode() |
NodeIdentifier |
RequestTarget.nodeIdentifier() |
default NodeIdentifier |
Request.target()
Returns the node that should service this request, or null to let the service locator decide.
|
| Modifier and Type | Method and Description |
|---|---|
RequestContext |
RequestContext.lastDispatchedToNode(NodeIdentifier lastDispatchedToNode) |
RequestTarget |
RequestTarget.withNodeIdentifier(NodeIdentifier nodeIdentifier) |
| Constructor and Description |
|---|
RequestTarget(ServiceType serviceType,
NodeIdentifier nodeIdentifier,
String bucketName) |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
CarrierBucketConfigRequest.target() |
NodeIdentifier |
KvPingRequest.target() |
NodeIdentifier |
CarrierGlobalConfigRequest.target() |
NodeIdentifier |
MultiObserveViaCasRequest.target() |
| Constructor and Description |
|---|
CarrierBucketConfigRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
NodeIdentifier target,
ConfigVersion ifNewerThan) |
CarrierGlobalConfigRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
NodeIdentifier target,
ConfigVersion ifNewerThan) |
KvPingRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
CollectionIdentifier identifier,
NodeIdentifier target) |
MultiObserveViaCasRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
CollectionIdentifier collectionIdentifier,
NodeIdentifier target,
Map<byte[],Short> keys,
Predicate<ObserveViaCasResponse.ObserveStatus> responsePredicate) |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
BucketConfigRequest.target() |
| Constructor and Description |
|---|
BucketConfigRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
String bucketName,
Authenticator authenticator,
NodeIdentifier target) |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
QueryRequest.target() |
| Constructor and Description |
|---|
QueryRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
Authenticator authenticator,
String statement,
byte[] query,
boolean idempotent,
String contextId,
RequestSpan span,
String bucket,
String scope,
NodeIdentifier target) |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
Node.identifier()
Returns the node identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static Node |
Node.create(CoreContext ctx,
NodeIdentifier identifier,
Optional<String> alternateAddress) |
| Constructor and Description |
|---|
Node(CoreContext ctx,
NodeIdentifier identifier,
Optional<String> alternateAddress) |
NodeContext(CoreContext ctx,
NodeIdentifier nodeIdentifier,
Optional<String> alternateAddress) |
| Modifier and Type | Method and Description |
|---|---|
NodeIdentifier |
ProtostellarCoreReactiveQueryResult.lastDispatchedTo() |
NodeIdentifier |
ProtostellarCoreQueryResult.lastDispatchedTo() |
| Modifier and Type | Method and Description |
|---|---|
CoreAsyncResponse<CoreQueryResult> |
ProtostellarCoreQueryOps.queryAsync(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter) |
CoreQueryResult |
ProtostellarCoreQueryOps.queryBlocking(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter) |
Mono<CoreReactiveQueryResult> |
ProtostellarCoreQueryOps.queryReactive(String statement,
CoreQueryOptions options,
CoreQueryContext queryContext,
NodeIdentifier target,
Function<Throwable,RuntimeException> errorConverter) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.