use of org.apache.ratis.protocol.GroupListRequest in project incubator-ratis by apache.
the class GroupManagementImpl method list.
@Override
public GroupListReply list() throws IOException {
final long callId = CallId.getAndIncrement();
final RaftClientReply reply = client.io().sendRequestWithRetry(() -> new GroupListRequest(client.getId(), server, client.getGroupId(), callId));
Preconditions.assertTrue(reply instanceof GroupListReply, () -> "Unexpected reply: " + reply);
return (GroupListReply) reply;
}
use of org.apache.ratis.protocol.GroupListRequest in project incubator-ratis by apache.
the class GrpcAdminProtocolService method groupList.
@Override
public void groupList(GroupListRequestProto proto, StreamObserver<GroupListReplyProto> responseObserver) {
final GroupListRequest request = ClientProtoUtils.toGroupListRequest(proto);
GrpcUtil.asyncCall(responseObserver, () -> protocol.getGroupListAsync(request), ClientProtoUtils::toGroupListReplyProto);
}
Aggregations