private List<NodeGroupState> getNodeGroupStates() { TestRequestSender sender = getTestRequestSender(); String nodeGroupPath = getNodeGroupPath(); List<Operation> nodeGroupOps = this.hosts.stream() .map(host -> UriUtils.buildUri(host.getUri(), nodeGroupPath)) .map(Operation::createGet) .collect(toList()); return sender.sendAndWait(nodeGroupOps, NodeGroupState.class); }
private List<NodeGroupState> getNodeGroupStates() { TestRequestSender sender = getTestRequestSender(); String nodeGroupPath = getNodeGroupPath(); List<Operation> nodeGroupOps = this.hosts.stream() .map(host -> UriUtils.buildUri(host.getUri(), nodeGroupPath)) .map(Operation::createGet) .collect(toList()); return sender.sendAndWait(nodeGroupOps, NodeGroupState.class); }
String nodeGroupPath = getNodeGroupPath(); UpdateQuorumRequest body = UpdateQuorumRequest.create(false); body.setMembershipQuorum(quorum);
String nodeGroupPath = getNodeGroupPath(); UpdateQuorumRequest body = UpdateQuorumRequest.create(false); body.setMembershipQuorum(quorum);
String nodeGroupPath = getNodeGroupPath();
String nodeGroupPath = getNodeGroupPath();
String nodeGroupPath = getNodeGroupPath(); Operation nodeGroupStateGetOp = Operation.createGet(host, nodeGroupPath); NodeGroupState nodeGroupState = sender.sendAndWait(nodeGroupStateGetOp, NodeGroupState.class);
String nodeGroupPath = getNodeGroupPath(); Operation nodeGroupStateGetOp = Operation.createGet(host, nodeGroupPath); NodeGroupState nodeGroupState = sender.sendAndWait(nodeGroupStateGetOp, NodeGroupState.class);