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 ProtostellarStatsCollector
collector
-
Constructor Summary
Constructors Constructor Description ProtostellarEndpoint(ProtostellarContext ctx, HostAndPort remote)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.couchbase.client.protostellar.analytics.v1.AnalyticsServiceGrpc.AnalyticsServiceStub
analyticsStub()
com.couchbase.client.protostellar.admin.bucket.v1.BucketAdminServiceGrpc.BucketAdminServiceFutureStub
bucketAdminStub()
com.couchbase.client.protostellar.admin.collection.v1.CollectionAdminServiceGrpc.CollectionAdminServiceFutureStub
collectionAdminStub()
EndpointDiagnostics
diagnostics()
com.couchbase.client.protostellar.internal.hooks.v1.HooksServiceGrpc.HooksServiceBlockingStub
hooksBlockingStub()
HostAndPort
hostAndPort()
boolean
isShutdown()
Note that this is synchronized against something that could block for some time - but only during shutdown.com.couchbase.client.protostellar.kv.v1.KvServiceGrpc.KvServiceBlockingStub
kvBlockingStub()
com.couchbase.client.protostellar.kv.v1.KvServiceGrpc.KvServiceFutureStub
kvStub()
com.couchbase.client.protostellar.query.v1.QueryServiceGrpc.QueryServiceStub
queryStub()
com.couchbase.client.protostellar.search.v1.SearchServiceGrpc.SearchServiceStub
searchStub()
void
shutdown(Duration timeout)
CompletableFuture<Void>
waitUntilReady(Deadline deadline, boolean waitingForReady)
Waits until the ManagedChannel is in READY state.
-
-
-
Field Detail
-
collector
public static ProtostellarStatsCollector collector
-
-
Constructor Detail
-
ProtostellarEndpoint
public ProtostellarEndpoint(ProtostellarContext ctx, HostAndPort remote)
-
-
Method Detail
-
diagnostics
public EndpointDiagnostics diagnostics()
-
shutdown
public void shutdown(Duration timeout)
-
kvStub
public com.couchbase.client.protostellar.kv.v1.KvServiceGrpc.KvServiceFutureStub kvStub()
-
kvBlockingStub
public com.couchbase.client.protostellar.kv.v1.KvServiceGrpc.KvServiceBlockingStub kvBlockingStub()
-
analyticsStub
public com.couchbase.client.protostellar.analytics.v1.AnalyticsServiceGrpc.AnalyticsServiceStub analyticsStub()
-
queryStub
public com.couchbase.client.protostellar.query.v1.QueryServiceGrpc.QueryServiceStub queryStub()
-
searchStub
public com.couchbase.client.protostellar.search.v1.SearchServiceGrpc.SearchServiceStub searchStub()
-
hooksBlockingStub
public com.couchbase.client.protostellar.internal.hooks.v1.HooksServiceGrpc.HooksServiceBlockingStub hooksBlockingStub()
-
collectionAdminStub
public com.couchbase.client.protostellar.admin.collection.v1.CollectionAdminServiceGrpc.CollectionAdminServiceFutureStub collectionAdminStub()
-
bucketAdminStub
public com.couchbase.client.protostellar.admin.bucket.v1.BucketAdminServiceGrpc.BucketAdminServiceFutureStub bucketAdminStub()
-
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.
-
hostAndPort
public HostAndPort hostAndPort()
-
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
CoreCouchbaseOps.waitUntilReady(Set, Duration, ClusterState, String)
uses.
-
-