Package io.etcd.jetcd.api
Class MaintenanceGrpc.MaintenanceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<MaintenanceGrpc.MaintenanceStub>
-
- io.etcd.jetcd.api.MaintenanceGrpc.MaintenanceStub
-
- Enclosing class:
- MaintenanceGrpc
public static final class MaintenanceGrpc.MaintenanceStub extends io.grpc.stub.AbstractAsyncStub<MaintenanceGrpc.MaintenanceStub>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalarm(AlarmRequest request, io.grpc.stub.StreamObserver<AlarmResponse> responseObserver)Alarm activates, deactivates, and queries alarms regarding cluster health.protected MaintenanceGrpc.MaintenanceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voiddefragment(DefragmentRequest request, io.grpc.stub.StreamObserver<DefragmentResponse> responseObserver)Defragment defragments a member's backend database to recover storage space.voidhash(HashRequest request, io.grpc.stub.StreamObserver<HashResponse> responseObserver)Hash returns the hash of the local KV state for consistency checking purpose.voidhashKV(HashKVRequest request, io.grpc.stub.StreamObserver<HashKVResponse> responseObserver)HashKV computes the hash of all MVCC keys up to a given revision.voidmoveLeader(MoveLeaderRequest request, io.grpc.stub.StreamObserver<MoveLeaderResponse> responseObserver)MoveLeader requests current leader node to transfer its leadership to transferee.voidsnapshot(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.voidstatus(StatusRequest request, io.grpc.stub.StreamObserver<StatusResponse> responseObserver)Status gets the status of the member.
-
-
-
Method Detail
-
build
protected MaintenanceGrpc.MaintenanceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<MaintenanceGrpc.MaintenanceStub>
-
alarm
public void alarm(AlarmRequest request, io.grpc.stub.StreamObserver<AlarmResponse> responseObserver)
Alarm activates, deactivates, and queries alarms regarding cluster health.
-
status
public void status(StatusRequest request, io.grpc.stub.StreamObserver<StatusResponse> responseObserver)
Status gets the status of the member.
-
defragment
public void defragment(DefragmentRequest request, io.grpc.stub.StreamObserver<DefragmentResponse> responseObserver)
Defragment defragments a member's backend database to recover storage space.
-
hash
public void hash(HashRequest request, io.grpc.stub.StreamObserver<HashResponse> responseObserver)
Hash 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.
-
hashKV
public void hashKV(HashKVRequest request, io.grpc.stub.StreamObserver<HashKVResponse> responseObserver)
HashKV computes the hash of all MVCC keys up to a given revision.
-
snapshot
public 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.
-
moveLeader
public void moveLeader(MoveLeaderRequest request, io.grpc.stub.StreamObserver<MoveLeaderResponse> responseObserver)
MoveLeader requests current leader node to transfer its leadership to transferee.
-
-