Search in sources :

Example 1 with GetRegionNamesFunction

use of org.apache.geode.management.internal.configuration.functions.GetRegionNamesFunction in project geode by apache.

the class ExportImportClusterConfigurationCommands method getRegionNamesOnServer.

private Set<String> getRegionNamesOnServer(DistributedMember server) {
    ResultCollector rc = CliUtil.executeFunction(new GetRegionNamesFunction(), null, server);
    List<Set<String>> results = (List<Set<String>>) rc.getResult();
    return results.get(0);
}
Also used : Collectors.toSet(java.util.stream.Collectors.toSet) Set(java.util.Set) GetRegionNamesFunction(org.apache.geode.management.internal.configuration.functions.GetRegionNamesFunction) List(java.util.List) ResultCollector(org.apache.geode.cache.execute.ResultCollector)

Aggregations

List (java.util.List)1 Set (java.util.Set)1 Collectors.toSet (java.util.stream.Collectors.toSet)1 ResultCollector (org.apache.geode.cache.execute.ResultCollector)1 GetRegionNamesFunction (org.apache.geode.management.internal.configuration.functions.GetRegionNamesFunction)1