public class MaintenanceService extends MaintenanceGrpc.MaintenanceImplBase
| Constructor and Description |
|---|
MaintenanceService(KetaLeaderElector elector) |
| Modifier and Type | Method and Description |
|---|---|
void |
alarm(AlarmRequest request,
io.grpc.stub.StreamObserver<AlarmResponse> responseObserver)
Alarm activates, deactivates, and queries alarms regarding cluster health.
|
void |
defragment(DefragmentRequest request,
io.grpc.stub.StreamObserver<DefragmentResponse> responseObserver)
Defragment defragments a member's backend database to recover storage space.
|
void |
hash(HashRequest request,
io.grpc.stub.StreamObserver<HashResponse> responseObserver)
Hash returns the hash of the local KV state for consistency checking purpose.
|
void |
hashKV(HashKVRequest request,
io.grpc.stub.StreamObserver<HashKVResponse> responseObserver)
HashKV computes the hash of all MVCC keys up to a given revision.
|
void |
moveLeader(MoveLeaderRequest request,
io.grpc.stub.StreamObserver<MoveLeaderResponse> responseObserver)
MoveLeader requests current leader node to transfer its leadership to transferee.
|
void |
snapshot(SnapshotRequest request,
io.grpc.stub.StreamObserver<SnapshotResponse> responseObserver)
Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
|
void |
status(StatusRequest request,
io.grpc.stub.StreamObserver<StatusResponse> responseObserver)
Status gets the status of the member.
|
bindServicepublic MaintenanceService(KetaLeaderElector elector)
public void alarm(AlarmRequest request, io.grpc.stub.StreamObserver<AlarmResponse> responseObserver)
MaintenanceGrpc.MaintenanceImplBaseAlarm activates, deactivates, and queries alarms regarding cluster health.
alarm in class MaintenanceGrpc.MaintenanceImplBasepublic void status(StatusRequest request, io.grpc.stub.StreamObserver<StatusResponse> responseObserver)
MaintenanceGrpc.MaintenanceImplBaseStatus gets the status of the member.
status in class MaintenanceGrpc.MaintenanceImplBasepublic void defragment(DefragmentRequest request, io.grpc.stub.StreamObserver<DefragmentResponse> responseObserver)
MaintenanceGrpc.MaintenanceImplBaseDefragment defragments a member's backend database to recover storage space.
defragment in class MaintenanceGrpc.MaintenanceImplBasepublic void hash(HashRequest request, io.grpc.stub.StreamObserver<HashResponse> responseObserver)
MaintenanceGrpc.MaintenanceImplBaseHash returns the hash of the local KV state for consistency checking purpose. This is designed for testing; do not use this in production when there are ongoing transactions.
hash in class MaintenanceGrpc.MaintenanceImplBasepublic void hashKV(HashKVRequest request, io.grpc.stub.StreamObserver<HashKVResponse> responseObserver)
MaintenanceGrpc.MaintenanceImplBaseHashKV computes the hash of all MVCC keys up to a given revision.
hashKV in class MaintenanceGrpc.MaintenanceImplBasepublic void snapshot(SnapshotRequest request, io.grpc.stub.StreamObserver<SnapshotResponse> responseObserver)
MaintenanceGrpc.MaintenanceImplBaseSnapshot sends a snapshot of the entire backend from a member over a stream to a client.
snapshot in class MaintenanceGrpc.MaintenanceImplBasepublic void moveLeader(MoveLeaderRequest request, io.grpc.stub.StreamObserver<MoveLeaderResponse> responseObserver)
MaintenanceGrpc.MaintenanceImplBaseMoveLeader requests current leader node to transfer its leadership to transferee.
moveLeader in class MaintenanceGrpc.MaintenanceImplBaseCopyright © 2021. All rights reserved.