Search in sources :

Example 21 with InfoResultData

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;
}
Also used : InfoResultData(org.apache.geode.management.internal.cli.result.InfoResultData) ConverterHint(org.apache.geode.management.cli.ConverterHint)

Aggregations

InfoResultData (org.apache.geode.management.internal.cli.result.InfoResultData)21 CliMetaData (org.apache.geode.management.cli.CliMetaData)17 CliCommand (org.springframework.shell.core.annotation.CliCommand)17 Result (org.apache.geode.management.cli.Result)12 ResourceOperation (org.apache.geode.management.internal.security.ResourceOperation)10 DistributedMember (org.apache.geode.distributed.DistributedMember)9 IOException (java.io.IOException)7 InternalCache (org.apache.geode.internal.cache.InternalCache)7 ConverterHint (org.apache.geode.management.cli.ConverterHint)7 CliFunctionResult (org.apache.geode.management.internal.cli.functions.CliFunctionResult)7 GfshParseResult (org.apache.geode.management.internal.cli.GfshParseResult)6 ErrorResultData (org.apache.geode.management.internal.cli.result.ErrorResultData)6 ArrayList (java.util.ArrayList)5 HashMap (java.util.HashMap)5 HashSet (java.util.HashSet)5 XmlEntity (org.apache.geode.management.internal.configuration.domain.XmlEntity)5 File (java.io.File)4 List (java.util.List)4 Set (java.util.Set)4 NetstatFunctionResult (org.apache.geode.management.internal.cli.functions.NetstatFunction.NetstatFunctionResult)4