public SetClusterStateRequest.Reply getReply(Request req) {
        NodeInfo info = request.getNodeInfo();

        if (req.methodName().equals(RPCCommunicator.SET_DISTRIBUTION_STATES_RPC_METHOD_NAME)) {
            if (req.isError()) {
                return new SetClusterStateRequest.Reply(req.errorCode(), req.errorMessage());
            } else if (!req.checkReturnTypes("")) {
                return new SetClusterStateRequest.Reply(ErrorCode.BAD_REPLY, "Got RPC response with invalid return types from " + info);
            }
        } else {
            return new SetClusterStateRequest.Reply(ErrorCode.BAD_REPLY, "Unknown method " + req.methodName());
        }

        return new SetClusterStateRequest.Reply();
    }
Waiter class for set cluster state RPC commands.
clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/rpc/RPCSetClusterStateWaiter.java