public class BlockWorkerImpl extends BlockWorkerGrpc.BlockWorkerImplBase
Constructor and Description |
---|
BlockWorkerImpl(WorkerProcess workerProcess,
FileSystemContext fsContext,
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) |
io.grpc.stub.StreamObserver<CreateLocalBlockRequest> |
createLocalBlock(io.grpc.stub.StreamObserver<CreateLocalBlockResponse> responseObserver)
Replaces ShortCircuitBlockWriteHandler.
|
Map<io.grpc.MethodDescriptor,io.grpc.MethodDescriptor> |
getOverriddenMethodDescriptors() |
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 BlockWorkerImpl(WorkerProcess workerProcess, FileSystemContext fsContext, boolean domainSocketEnabled)
workerProcess
- the worker processfsContext
- context used to read blocksdomainSocketEnabled
- 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 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
Copyright © 2023. All Rights Reserved.