Search in sources :

Example 1 with ExecutionReport

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;
}
Also used : ExecutionReport(com.github.diegopacheco.dynomite.cluster.checker.context.ExecutionReport) ArrayList(java.util.ArrayList) NodeCheckerResponse(com.github.diegopacheco.dynomite.cluster.checker.context.NodeCheckerResponse)

Aggregations

ExecutionReport (com.github.diegopacheco.dynomite.cluster.checker.context.ExecutionReport)1 NodeCheckerResponse (com.github.diegopacheco.dynomite.cluster.checker.context.NodeCheckerResponse)1 ArrayList (java.util.ArrayList)1