Spring for Apache Hadoop

org.springframework.yarn.launch
Class JvmSystemExiter

java.lang.Object
  extended by org.springframework.yarn.launch.JvmSystemExiter
All Implemented Interfaces:
SystemExiter

public class JvmSystemExiter
extends java.lang.Object
implements SystemExiter

Implementation of the SystemExiter interface that calls the standards System.exit method. It should be noted that there will be no unit tests for this class, since there is only one line of actual code, that would only be testable by mocking System or Runtime.

Author:
Janne Valkealahti

Constructor Summary
JvmSystemExiter()
           
 
Method Summary
 void exit(int status)
          Delegate call to System.exit() with the argument provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvmSystemExiter

public JvmSystemExiter()
Method Detail

exit

public void exit(int status)
Delegate call to System.exit() with the argument provided. This should only be used in a scenario where a particular status needs to be returned to an external scheduler.

Specified by:
exit in interface SystemExiter
Parameters:
status - exit status.
See Also:
SystemExiter.exit(int)

Spring for Apache Hadoop