use of org.apache.geode.management.internal.cli.functions.ShowMissingDiskStoresFunction in project geode by apache.
the class DiskStoreCommands method getMissingDiskStoresList.
protected List<Object> getMissingDiskStoresList(Set<DistributedMember> members) {
final Execution membersFunctionExecutor = getMembersFunctionExecutor(members);
if (membersFunctionExecutor instanceof AbstractExecution) {
((AbstractExecution) membersFunctionExecutor).setIgnoreDepartedMembers(true);
}
final ResultCollector<?, ?> resultCollector = membersFunctionExecutor.execute(new ShowMissingDiskStoresFunction());
final List<?> results = (List<?>) resultCollector.getResult();
final List<Object> distributedPersistentRecoveryDetails = new ArrayList<Object>(results.size());
for (final Object result : results) {
if (result instanceof Set) {
// ignore FunctionInvocationTargetExceptions and other
// Exceptions...
distributedPersistentRecoveryDetails.addAll((Set<Object>) result);
}
}
return distributedPersistentRecoveryDetails;
}
Aggregations