use of org.apache.geode.management.internal.cli.result.InfoResultData in project geode by apache.
the class DurableClientCommands method buildSuccessData.
private InfoResultData buildSuccessData(Map<String, List<String>> successMap) {
InfoResultData ird = ResultBuilder.createInfoResultData();
Set<String> successMessages = successMap.keySet();
for (String successMessage : successMessages) {
ird.addLine(CliStrings.format(CliStrings.ACTION_SUCCCEEDED_ON_MEMBER, successMessage));
List<String> successfullMembers = successMap.get(successMessage);
int num = 0;
for (String member : successfullMembers) {
ird.addLine("" + ++num + "." + member);
}
ird.addLine("\n");
}
return ird;
}
Aggregations