/** * Actions to take when an application attempt is completed * @param attemptId application ID * @throws IOException problems */ public void onApplicationAttemptUnregistered(ApplicationAttemptId attemptId) throws IOException { LOG.info("Application attempt {} unregistered, purging app attempt records", attemptId); purgeAppAttemptRecords(attemptId); }
/** * Actions to take when the AM container is completed * @param containerId container ID * @throws IOException problems */ public void onAMContainerFinished(ContainerId containerId) throws IOException { LOG.info("AM Container {} finished, purging application attempt records", containerId); // remove all application attempt entries purgeAppAttemptRecords(containerId.getApplicationAttemptId()); // also treat as a container finish to remove container // level records for the AM container onContainerFinished(containerId); }