public class BlockWorkerClientServiceHandler extends BlockWorkerGrpc.BlockWorkerImplBase
Constructor and Description |
---|
BlockWorkerClientServiceHandler(WorkerProcess workerProcess,
boolean domainSocketEnabled)
Creates a new implementation of gRPC BlockWorker interface.
|
Modifier and Type | Method and Description |
---|---|
void |
asyncCache(AsyncCacheRequest request,
io.grpc.stub.StreamObserver<AsyncCacheResponse> responseObserver) |
void |
cache(CacheRequest request,
io.grpc.stub.StreamObserver<CacheResponse> responseObserver) |
void |
clearMetrics(ClearMetricsRequest request,
io.grpc.stub.StreamObserver<ClearMetricsResponse> responseObserver)
TODO(lu) Move to metrics worker
|
io.grpc.stub.StreamObserver<CreateLocalBlockRequest> |
createLocalBlock(io.grpc.stub.StreamObserver<CreateLocalBlockResponse> responseObserver)
Replaces ShortCircuitBlockWriteHandler.
|
void |
freeWorker(FreeWorkerRequest request,
io.grpc.stub.StreamObserver<FreeWorkerResponse> responseObserver) |
Map<io.grpc.MethodDescriptor,io.grpc.MethodDescriptor> |
getOverriddenMethodDescriptors() |
void |
load(LoadRequest request,
io.grpc.stub.StreamObserver<LoadResponse> responseObserver) |
void |
moveBlock(MoveBlockRequest request,
io.grpc.stub.StreamObserver<MoveBlockResponse> responseObserver) |
io.grpc.stub.StreamObserver<OpenLocalBlockRequest> |
openLocalBlock(io.grpc.stub.StreamObserver<OpenLocalBlockResponse> responseObserver)
Replaces ShortCircuitBlockReadHandler.
|
io.grpc.stub.StreamObserver<ReadRequest> |
readBlock(io.grpc.stub.StreamObserver<ReadResponse> responseObserver) |
void |
removeBlock(RemoveBlockRequest request,
io.grpc.stub.StreamObserver<RemoveBlockResponse> responseObserver) |
io.grpc.stub.StreamObserver<WriteRequest> |
writeBlock(io.grpc.stub.StreamObserver<WriteResponse> responseObserver) |
bindService
public BlockWorkerClientServiceHandler(WorkerProcess workerProcess, boolean domainSocketEnabled)
workerProcess
- the worker processdomainSocketEnabled
- is using domain socketspublic Map<io.grpc.MethodDescriptor,io.grpc.MethodDescriptor> getOverriddenMethodDescriptors()
public io.grpc.stub.StreamObserver<ReadRequest> readBlock(io.grpc.stub.StreamObserver<ReadResponse> responseObserver)
readBlock
in class BlockWorkerGrpc.BlockWorkerImplBase
public io.grpc.stub.StreamObserver<WriteRequest> writeBlock(io.grpc.stub.StreamObserver<WriteResponse> responseObserver)
writeBlock
in class BlockWorkerGrpc.BlockWorkerImplBase
public io.grpc.stub.StreamObserver<OpenLocalBlockRequest> openLocalBlock(io.grpc.stub.StreamObserver<OpenLocalBlockResponse> responseObserver)
BlockWorkerGrpc.BlockWorkerImplBase
Replaces ShortCircuitBlockReadHandler.
openLocalBlock
in class BlockWorkerGrpc.BlockWorkerImplBase
public io.grpc.stub.StreamObserver<CreateLocalBlockRequest> createLocalBlock(io.grpc.stub.StreamObserver<CreateLocalBlockResponse> responseObserver)
BlockWorkerGrpc.BlockWorkerImplBase
Replaces ShortCircuitBlockWriteHandler.
createLocalBlock
in class BlockWorkerGrpc.BlockWorkerImplBase
public void asyncCache(AsyncCacheRequest request, io.grpc.stub.StreamObserver<AsyncCacheResponse> responseObserver)
asyncCache
in class BlockWorkerGrpc.BlockWorkerImplBase
public void cache(CacheRequest request, io.grpc.stub.StreamObserver<CacheResponse> responseObserver)
cache
in class BlockWorkerGrpc.BlockWorkerImplBase
public void load(LoadRequest request, io.grpc.stub.StreamObserver<LoadResponse> responseObserver)
load
in class BlockWorkerGrpc.BlockWorkerImplBase
public void removeBlock(RemoveBlockRequest request, io.grpc.stub.StreamObserver<RemoveBlockResponse> responseObserver)
removeBlock
in class BlockWorkerGrpc.BlockWorkerImplBase
public void moveBlock(MoveBlockRequest request, io.grpc.stub.StreamObserver<MoveBlockResponse> responseObserver)
moveBlock
in class BlockWorkerGrpc.BlockWorkerImplBase
public void freeWorker(FreeWorkerRequest request, io.grpc.stub.StreamObserver<FreeWorkerResponse> responseObserver)
freeWorker
in class BlockWorkerGrpc.BlockWorkerImplBase
public void clearMetrics(ClearMetricsRequest request, io.grpc.stub.StreamObserver<ClearMetricsResponse> responseObserver)
BlockWorkerGrpc.BlockWorkerImplBase
TODO(lu) Move to metrics worker
clearMetrics
in class BlockWorkerGrpc.BlockWorkerImplBase
Copyright © 2023. All Rights Reserved.