@Override
	public void run() {
		log.info("Hello from KillApplicationContainer, gonna sleep next 2 minutes...");
		for(int i = 0; i<24; i++) {
			log.info("Waiting to get killed");
			try {
				Thread.sleep(5000);
			} catch (InterruptedException e) {
			}
		}
		log.info("Hello from KillApplicationContainer, it seems I wasn't killed.");
	}
Container which just sleeps.

@author Janne Valkealahti
yarn/yarn/kill-application/src/main/java/org/springframework/yarn/examples/KillApplicationContainer.java