org.springframework.yarn.launch
Interface SystemExiter
- All Known Implementing Classes:
- JvmSystemExiter
public interface SystemExiter
Interface for exiting the JVM. This abstraction is only useful in order to
allow classes that make System.exit calls to be testable, since calling
System.exit during a unit test would cause the entire jvm to finish.
- Author:
- Janne Valkealahti
|
Method Summary |
void |
exit(int status)
Terminate the currently running Java Virtual Machine. |
exit
void exit(int status)
- Terminate the currently running Java Virtual Machine.
- Parameters:
status - exit status.
- Throws:
SecurityException - if a security manager exists and its checkExit
method doesn't allow exit with the specified status.- See Also:
System.exit(int)