Class XdsKubernetesService
java.lang.Object
com.linecorp.centraldogma.xds.k8s.v1.XdsKubernetesServiceGrpc.XdsKubernetesServiceImplBase
com.linecorp.centraldogma.xds.k8s.v1.XdsKubernetesService
- All Implemented Interfaces:
com.linecorp.centraldogma.xds.k8s.v1.XdsKubernetesServiceGrpc.AsyncService
,io.grpc.BindableService
public final class XdsKubernetesService
extends com.linecorp.centraldogma.xds.k8s.v1.XdsKubernetesServiceGrpc.XdsKubernetesServiceImplBase
A gRPC service that handles Kubernetes resources.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pattern
static final CompletableFuture<?>[]
static final Pattern
-
Constructor Summary
ConstructorDescriptionXdsKubernetesService
(com.linecorp.centraldogma.xds.internal.XdsResourceManager xdsResourceManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createKubernetesEndpointAggregator
(com.linecorp.centraldogma.xds.k8s.v1.CreateKubernetesEndpointAggregatorRequest request, io.grpc.stub.StreamObserver<com.linecorp.centraldogma.xds.k8s.v1.KubernetesEndpointAggregator> responseObserver) static CompletableFuture
<com.linecorp.armeria.client.kubernetes.endpoints.KubernetesEndpointGroup> createKubernetesEndpointGroup
(com.linecorp.centraldogma.xds.k8s.v1.ServiceEndpointWatcher watcher, MetaRepository metaRepository, Executor executor) Creates aKubernetesEndpointGroup
from the specifiedServiceEndpointWatcher
.void
deleteKubernetesEndpointAggregator
(com.linecorp.centraldogma.xds.k8s.v1.DeleteKubernetesEndpointAggregatorRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) void
updateKubernetesEndpointAggregator
(com.linecorp.centraldogma.xds.k8s.v1.UpdateKubernetesEndpointAggregatorRequest request, io.grpc.stub.StreamObserver<com.linecorp.centraldogma.xds.k8s.v1.KubernetesEndpointAggregator> responseObserver) Methods inherited from class com.linecorp.centraldogma.xds.k8s.v1.XdsKubernetesServiceGrpc.XdsKubernetesServiceImplBase
bindService
-
Field Details
-
AGGREGATORS_REPLCACE_PATTERN
-
K8S_ENDPOINT_AGGREGATORS_NAME_PATTERN
-
EMPTY_FUTURES
-
-
Constructor Details
-
XdsKubernetesService
public XdsKubernetesService(com.linecorp.centraldogma.xds.internal.XdsResourceManager xdsResourceManager) Creates a new instance.
-
-
Method Details
-
createKubernetesEndpointAggregator
public void createKubernetesEndpointAggregator(com.linecorp.centraldogma.xds.k8s.v1.CreateKubernetesEndpointAggregatorRequest request, io.grpc.stub.StreamObserver<com.linecorp.centraldogma.xds.k8s.v1.KubernetesEndpointAggregator> responseObserver) -
createKubernetesEndpointGroup
public static CompletableFuture<com.linecorp.armeria.client.kubernetes.endpoints.KubernetesEndpointGroup> createKubernetesEndpointGroup(com.linecorp.centraldogma.xds.k8s.v1.ServiceEndpointWatcher watcher, MetaRepository metaRepository, Executor executor) Creates aKubernetesEndpointGroup
from the specifiedServiceEndpointWatcher
. This method must be executed in a blocking thread becauseKubernetesEndpointGroupBuilder.build()
blocks the execution thread. -
updateKubernetesEndpointAggregator
public void updateKubernetesEndpointAggregator(com.linecorp.centraldogma.xds.k8s.v1.UpdateKubernetesEndpointAggregatorRequest request, io.grpc.stub.StreamObserver<com.linecorp.centraldogma.xds.k8s.v1.KubernetesEndpointAggregator> responseObserver) -
deleteKubernetesEndpointAggregator
public void deleteKubernetesEndpointAggregator(com.linecorp.centraldogma.xds.k8s.v1.DeleteKubernetesEndpointAggregatorRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
-