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 |
decommissionWorker(DecommissionWorkerPOptions options,
io.grpc.stub.StreamObserver<DecommissionWorkerPResponse> responseObserver)
Decommission the specific worker from Alluxio.
|
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 |
getLostWorkerList(GetWorkerInfoListPOptions options,
io.grpc.stub.StreamObserver<GetWorkerInfoListPResponse> responseObserver)
Returns a list of workers information.
|
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 |
removeDisabledWorker(RemoveDisabledWorkerPOptions options,
io.grpc.stub.StreamObserver<RemoveDisabledWorkerPResponse> 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.AsyncService
Returns the block information for the given block id.
public void getBlockMasterInfo(GetBlockMasterInfoPOptions options, io.grpc.stub.StreamObserver<GetBlockMasterInfoPResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
Returns block master information.
public void getCapacityBytes(GetCapacityBytesPOptions options, io.grpc.stub.StreamObserver<GetCapacityBytesPResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
Returns the capacity (in bytes).
public void getUsedBytes(GetUsedBytesPOptions options, io.grpc.stub.StreamObserver<GetUsedBytesPResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
Returns the used storage (in bytes).
public void getWorkerInfoList(GetWorkerInfoListPOptions options, io.grpc.stub.StreamObserver<GetWorkerInfoListPResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
Returns a list of workers information.
public void getLostWorkerList(GetWorkerInfoListPOptions options, io.grpc.stub.StreamObserver<GetWorkerInfoListPResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
Returns a list of workers information.
public void removeDisabledWorker(RemoveDisabledWorkerPOptions options, io.grpc.stub.StreamObserver<RemoveDisabledWorkerPResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
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.AsyncService
Returns a list of workers information for report CLI.
public void getWorkerLostStorage(GetWorkerLostStoragePOptions options, io.grpc.stub.StreamObserver<GetWorkerLostStoragePResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
Returns a list of worker lost storage information
public void decommissionWorker(DecommissionWorkerPOptions options, io.grpc.stub.StreamObserver<DecommissionWorkerPResponse> responseObserver)
BlockMasterClientServiceGrpc.AsyncService
Decommission the specific worker from Alluxio.
Copyright © 2023. All Rights Reserved.