public final class BlockMasterClientServiceHandler extends BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Constructor and Description |
---|
BlockMasterClientServiceHandler(BlockMaster blockMaster)
Creates a new instance of
BlockMasterClientServiceHandler . |
Modifier and Type | Method and Description |
---|---|
void |
getBlockInfo(GetBlockInfoPRequest request,
io.grpc.stub.StreamObserver<GetBlockInfoPResponse> responseObserver)
Returns the block information for the given block id.
|
void |
getBlockMasterInfo(GetBlockMasterInfoPOptions options,
io.grpc.stub.StreamObserver<GetBlockMasterInfoPResponse> responseObserver)
Returns block master information.
|
void |
getCapacityBytes(GetCapacityBytesPOptions options,
io.grpc.stub.StreamObserver<GetCapacityBytesPResponse> responseObserver)
Returns the capacity (in bytes).
|
void |
getUsedBytes(GetUsedBytesPOptions options,
io.grpc.stub.StreamObserver<GetUsedBytesPResponse> responseObserver)
Returns the used storage (in bytes).
|
void |
getWorkerInfoList(GetWorkerInfoListPOptions options,
io.grpc.stub.StreamObserver<GetWorkerInfoListPResponse> responseObserver)
Returns a list of workers information.
|
void |
getWorkerLostStorage(GetWorkerLostStoragePOptions options,
io.grpc.stub.StreamObserver<GetWorkerLostStoragePResponse> responseObserver)
Returns a list of worker lost storage information
|
void |
getWorkerReport(GetWorkerReportPOptions options,
io.grpc.stub.StreamObserver<GetWorkerInfoListPResponse> responseObserver)
Returns a list of workers information for report CLI.
|
void |
removeDecommissionedWorker(RemoveDecommissionedWorkerPOptions options,
io.grpc.stub.StreamObserver<RemoveDecommissionedWorkerPResponse> responseObserver)
If target worker is in the decommissioned worker set,
return true, remove target worker from decommissioned worker set; else, return false.
|
bindService
public BlockMasterClientServiceHandler(BlockMaster blockMaster)
BlockMasterClientServiceHandler
.blockMaster
- the BlockMaster
the handler uses internallypublic void getBlockInfo(GetBlockInfoPRequest request, io.grpc.stub.StreamObserver<GetBlockInfoPResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Returns the block information for the given block id.
getBlockInfo
in class BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
public void getBlockMasterInfo(GetBlockMasterInfoPOptions options, io.grpc.stub.StreamObserver<GetBlockMasterInfoPResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Returns block master information.
getBlockMasterInfo
in class BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
public void getCapacityBytes(GetCapacityBytesPOptions options, io.grpc.stub.StreamObserver<GetCapacityBytesPResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Returns the capacity (in bytes).
getCapacityBytes
in class BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
public void getUsedBytes(GetUsedBytesPOptions options, io.grpc.stub.StreamObserver<GetUsedBytesPResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Returns the used storage (in bytes).
getUsedBytes
in class BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
public void getWorkerInfoList(GetWorkerInfoListPOptions options, io.grpc.stub.StreamObserver<GetWorkerInfoListPResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Returns a list of workers information.
getWorkerInfoList
in class BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
public void removeDecommissionedWorker(RemoveDecommissionedWorkerPOptions options, io.grpc.stub.StreamObserver<RemoveDecommissionedWorkerPResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
If target worker is in the decommissioned worker set, return true, remove target worker from decommissioned worker set; else, return false.
public void getWorkerReport(GetWorkerReportPOptions options, io.grpc.stub.StreamObserver<GetWorkerInfoListPResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Returns a list of workers information for report CLI.
getWorkerReport
in class BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
public void getWorkerLostStorage(GetWorkerLostStoragePOptions options, io.grpc.stub.StreamObserver<GetWorkerLostStoragePResponse> responseObserver)
BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Returns a list of worker lost storage information
getWorkerLostStorage
in class BlockMasterClientServiceGrpc.BlockMasterClientServiceImplBase
Copyright © 2023. All Rights Reserved.