use of org.apache.ratis.protocol.ServerInformationRequest in project incubator-ratis by apache.
the class AdminProtocolService method serverInformation.
@Override
public void serverInformation(ServerInformationRequestProto proto, StreamObserver<ServerInformationReplyProto> responseObserver) {
final ServerInformationRequest request = ClientProtoUtils.toServerInformationRequest(proto);
RaftGrpcUtil.asyncCall(responseObserver, () -> protocol.getInfoAsync(request), ClientProtoUtils::toServerInformationReplyProto);
}
Aggregations