public static class InJvmContainerExecutor.SystemExitAllowSecurityManager extends SecurityManager
SecurityManager which can be used to
intercept System.exit. This implementation will simply throw an exception
when such call is made essentially making such call ineffective.
It is used by this class to intercept System.exit calls made by some
implementations of YARN containers (e.g., Tez's DAGAppMaster). Since this
container executor will use the same JVM its running in to start those
containers any System.exit call will shut down the entire cluster. Using
such SecurityManager would allow such calls to be intercepted by
catching SystemExitException.inCheck| Constructor and Description |
|---|
InJvmContainerExecutor.SystemExitAllowSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkExit(int status) |
void |
checkPermission(Permission perm) |
void |
checkPermission(Permission perm,
Object context) |
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoaderpublic InJvmContainerExecutor.SystemExitAllowSecurityManager()
public void checkPermission(Permission perm)
checkPermission in class SecurityManagerpublic void checkPermission(Permission perm, Object context)
checkPermission in class SecurityManagerpublic void checkExit(int status)
checkExit in class SecurityManagerCopyright © 2015. All Rights Reserved.