<p>
Returns a list of failed remediation batch objects.
</p>

@param failedBatches
Returns a list of failed remediation batch objects.
557667
public void setFailedBatches(java.util.Collection<FailedRemediationBatch> failedBatches) {
        if (failedBatches == null) {
            this.failedBatches = null;
            return;
        }

        this.failedBatches = new com.amazonaws.internal.SdkInternalList<FailedRemediationBatch>(failedBatches);
    }
525536
public java.util.List<FailedScheduledUpdateGroupActionRequest> getFailedScheduledActions() {
        if (failedScheduledActions == null) {
            failedScheduledActions = new com.amazonaws.internal.SdkInternalList<FailedScheduledUpdateGroupActionRequest>();
        }
        return failedScheduledActions;
    }
1221913
@SuppressWarnings("unchecked")
    private CompletionStage<List<V>> invokeMapBatchLoader(List<K> keys, BatchLoaderEnvironment environment) {
        CompletionStage<Map<K, V>> loadResult;
        Set<K> setOfKeys = new LinkedHashSet<>(keys);
        if (batchLoadFunction instanceof MappedBatchLoaderWithContext) {
            loadResult = ((MappedBatchLoaderWithContext<K, V>) batchLoadFunction).load(setOfKeys, environment);
        } else {
            loadResult = ((MappedBatchLoader<K, V>) batchLoadFunction).load(setOfKeys);
        }
        CompletionStage<Map<K, V>> mapBatchLoad = nonNull(loadResult, "Your batch loader function MUST return a non null CompletionStage promise");
        return mapBatchLoad.thenApply(map -> {
            List<V> values = new ArrayList<>();
            for (K key : keys) {
                V value = map.get(key);
                values.add(value);
            }
            return values;
        });
    }
1057381
def failures():
    """"""
    if not HAVE_BIN_LIBS:
        click.echo("missing required binary libs (lz4, msgpack)")
        return

    q = Queue('failed', connection=worker.connection)
    for i in q.get_job_ids():
        j = q.job_class.fetch(i, connection=q.connection)
        click.echo("%s on %s" % (j.func_name, j.origin))
        if not j.func_name.endswith('process_keyset'):
            click.echo("params %s %s" % (j._args, j._kwargs))
        click.echo(j.exc_info)
318156
public void setFailedItems(java.util.Collection<ResourceKey> failedItems) {
        if (failedItems == null) {
            this.failedItems = null;
            return;
        }

        this.failedItems = new com.amazonaws.internal.SdkInternalList<ResourceKey>(failedItems);
    }
933694
public java.util.List<RemediationConfiguration> getRemediationConfigurations() {
        if (remediationConfigurations == null) {
            remediationConfigurations = new com.amazonaws.internal.SdkInternalList<RemediationConfiguration>();
        }
        return remediationConfigurations;
    }
1045976
def failed_hosts(self) -> Dict[str, "MultiResult"]:
        
        return {k: v for k, v in self.result.items() if v.failed}
699140
public void setFailed(java.util.Collection<BatchResultErrorEntry> failed) {
        if (failed == null) {
            this.failed = null;
            return;
        }

        this.failed = new com.amazonaws.internal.SdkInternalList<BatchResultErrorEntry>(failed);
    }
295846
static <R> BiPredicate<R, Throwable> failurePredicateFor(List<Class<? extends Throwable>> failures) {
    return (t, u) -> {
      if (u == null)
        return false;
      for (Class<? extends Throwable> failureType : failures)
        if (failureType.isAssignableFrom(u.getClass()))
          return true;
      return false;
    };
  }
1214467
private List<MigrationInfo> failed(MigrationInfo[] migrationInfos) {
        if (migrationInfos.length == 0)
            throw new NotFoundException();
        List<MigrationInfo> failedMigrations = Lists.newArrayList();
        for (MigrationInfo migrationInfo : migrationInfos) {
            if (migrationInfo.getState().isFailed()) {
                failedMigrations.add(migrationInfo);
            }
        }

        return failedMigrations;
    }
709046
@SuppressWarnings("unchecked")
  public RetryPolicy<R> abortOn(Class<? extends Throwable>... failures) {
    Assert.notNull(failures, "failures");
    Assert.isTrue(failures.length > 0, "Failures cannot be empty");
    return abortOn(Arrays.asList(failures));
  }
90428
Map<String, List<String>> getBlackListedTrackers() {

    Map<String, List<String>> blackListedTrackers
        = new HashMap<String, List<String>>();

    for (Map.Entry<String,List<String>> e : trackerToFailuresMap.entrySet()) {
       if (e.getValue().size() >= maxTaskFailuresPerTracker) {
         blackListedTrackers.put(e.getKey(), e.getValue());
       }
    }
    return blackListedTrackers;
  }
1214625
public List<Long> listBatchIds(ClientIdentity clientIdentity) throws CanalServerException {
        checkStart(clientIdentity.getDestination());
        checkSubscribe(clientIdentity);

        CanalInstance canalInstance = canalInstances.get(clientIdentity.getDestination());
        Map<Long, PositionRange> batchs = canalInstance.getMetaManager().listAllBatchs(clientIdentity);
        List<Long> result = new ArrayList<Long>(batchs.keySet());
        Collections.sort(result);
        return result;
    }
285944
public List<CsvFieldError> getFieldErrors(final CsvBindingErrors bindingErrors) {
        Objects.requireNonNull(bindingErrors);
        return bindingErrors.getFieldErrors(getName());
    }
852407
public void setBatchPutMessageErrorEntries(java.util.Collection<BatchPutMessageErrorEntry> batchPutMessageErrorEntries) {
        if (batchPutMessageErrorEntries == null) {
            this.batchPutMessageErrorEntries = null;
            return;
        }

        this.batchPutMessageErrorEntries = new java.util.ArrayList<BatchPutMessageErrorEntry>(batchPutMessageErrorEntries);
    }
1240477
private List<String> checkDeletions(List<String> deletes) {
        List<String> failedObjects = new ArrayList<String>();
        for (String delete : deletes) {
            if (!checkIfActiveOidExisting(delete)) {
                failedObjects.add(delete);
            }
        }
        return failedObjects;
    }
676873
public static Batch[] all() throws AuthenticationException, InvalidRequestException, APIConnectionException,
			APIException, UnsupportedEncodingException, MalformedURLException {
		List<Batch> all_batches = new ArrayList<Batch>();
		Map<String, String> params = new HashMap<String, String>();
		while (true) {
			Map<String, Object> reqParams = new HashMap<String, Object>(params);
			BatchCollection coll = request(RequestMethod.GET, classURL(Batch.class), reqParams, BatchCollection.class,
					null);
			if (coll.array.length == 0) {
				break;
			}
			all_batches.addAll(Arrays.asList(coll.array));
			if (coll.next == null) {
				break;
			}
			params = HttpUtil.queryToParams(new URL(coll.next).getQuery());
		}
		Batch[] array = new Batch[all_batches.size()];
		all_batches.toArray(array);
		return array;
	}