Search in sources :

Example 1 with ServerInformationRequest

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);
}
Also used : ServerInformationRequest(org.apache.ratis.protocol.ServerInformationRequest) ClientProtoUtils(org.apache.ratis.client.impl.ClientProtoUtils)

Aggregations

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