public void onContainersRecovered(final Set<Container> recoveredContainers) {
    for (final Container container : recoveredContainers) {
      containers.add(container);
    }
  }
public void onContainersRecovered ( final Set < Container > recoveredContainers ) { for ( final Container container : recoveredContainers ) { containers . add ( container ) ; } }
Called by {@link YarnDriverRuntimeRestartManager} to record recovered containers
such that containers can be released properly on unrecoverable containers.