Search in sources :

Example 1 with ReinitializeRequest

use of org.apache.ratis.protocol.ReinitializeRequest in project incubator-ratis by apache.

the class AdminProtocolService method reinitialize.

@Override
public void reinitialize(ReinitializeRequestProto proto, StreamObserver<RaftClientReplyProto> responseObserver) {
    final ReinitializeRequest request = ClientProtoUtils.toReinitializeRequest(proto);
    RaftGrpcUtil.asyncCall(responseObserver, () -> protocol.reinitializeAsync(request), ClientProtoUtils::toRaftClientReplyProto);
}
Also used : ReinitializeRequest(org.apache.ratis.protocol.ReinitializeRequest) ClientProtoUtils(org.apache.ratis.client.impl.ClientProtoUtils)

Aggregations

ClientProtoUtils (org.apache.ratis.client.impl.ClientProtoUtils)1 ReinitializeRequest (org.apache.ratis.protocol.ReinitializeRequest)1