Class ProtostellarEndpoint
- java.lang.Object
-
- com.couchbase.client.core.endpoint.ProtostellarEndpoint
-
public class ProtostellarEndpoint extends Object
Wraps a GRPC ManagedChannel.
-
-
Field Summary
Fields Modifier and Type Field Description static ProtostellarStatsCollectorcollector
-
Constructor Summary
Constructors Constructor Description ProtostellarEndpoint(Core core, String hostname, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.couchbase.client.protostellar.analytics.v1.AnalyticsGrpc.AnalyticsStubanalyticsStub()com.couchbase.client.protostellar.admin.collection.v1.CollectionAdminGrpc.CollectionAdminFutureStubcollectionAdminStub()EndpointDiagnosticsdiagnostics()com.couchbase.client.protostellar.internal.hooks.v1.HooksGrpc.HooksBlockingStubhooksBlockingStub()Stringhostname()booleanisShutdown()Note that this is synchronized against something that could block for some time - but only during shutdown.com.couchbase.client.protostellar.kv.v1.KvGrpc.KvBlockingStubkvBlockingStub()com.couchbase.client.protostellar.kv.v1.KvGrpc.KvFutureStubkvStub()intport()com.couchbase.client.protostellar.query.v1.QueryGrpc.QueryStubqueryStub()voidshutdown(Duration timeout)CompletableFuture<Void>waitUntilReady(Deadline deadline, boolean waitingForReady)Waits until the ManagedChannel is in READY state.
-
-
-
Field Detail
-
collector
public static ProtostellarStatsCollector collector
-
-
Method Detail
-
diagnostics
public EndpointDiagnostics diagnostics()
-
shutdown
public void shutdown(Duration timeout)
-
kvStub
public com.couchbase.client.protostellar.kv.v1.KvGrpc.KvFutureStub kvStub()
-
kvBlockingStub
public com.couchbase.client.protostellar.kv.v1.KvGrpc.KvBlockingStub kvBlockingStub()
-
analyticsStub
public com.couchbase.client.protostellar.analytics.v1.AnalyticsGrpc.AnalyticsStub analyticsStub()
-
queryStub
public com.couchbase.client.protostellar.query.v1.QueryGrpc.QueryStub queryStub()
-
hooksBlockingStub
public com.couchbase.client.protostellar.internal.hooks.v1.HooksGrpc.HooksBlockingStub hooksBlockingStub()
-
collectionAdminStub
public com.couchbase.client.protostellar.admin.collection.v1.CollectionAdminGrpc.CollectionAdminFutureStub collectionAdminStub()
-
isShutdown
public boolean isShutdown()
Note that this is synchronized against something that could block for some time - but only during shutdown.It's synchronized to make the shutdown process atomic.
-
hostname
public String hostname()
-
port
public int port()
-
waitUntilReady
@Internal public CompletableFuture<Void> waitUntilReady(Deadline deadline, boolean waitingForReady)
Waits until the ManagedChannel is in READY state. Will also initialise trying to make that connection if it's not already.- Returns:
- a CompletableFuture as that's what WaitUntilReadyHelper uses.
-
-