use of com.github.diegopacheco.dynomite.cluster.checker.context.ExecutionReport in project dynomite-cluster-checker by diegopacheco.
the class ListPrinterTest method buildResultReport.
private ExecutionReport buildResultReport(List<DynomiteNodeInfo> nodes) {
ExecutionReport resultReport = new ExecutionReport();
resultReport.setOfflineNodes(nodes);
resultReport.setFailoverStatus("Issue");
List<NodeCheckerResponse> responses = new ArrayList<NodeCheckerResponse>();
responses.add(new NodeCheckerResponse("localhost1:6379:rack1:dc1:123|localhost2:6379:rack1:dc1:123|", "0", "0", false, "localhost1"));
responses.add(new NodeCheckerResponse("localhost1:6379:rack1:dc1:123|localhost2:6379:rack1:dc1:123|", "0", "0", false, "localhost2"));
resultReport.setNodesReport(responses);
return resultReport;
}
Aggregations