Class PrivilegedOperation
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.privileged.PrivilegedOperation
Represents operations that require higher system privileges - e.g
creating cgroups, launching containers as specified users, 'tc' commands etc
that are completed using the container-executor binary
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumResult codes returned from the C container-executor.static enumList of commands that the container-executor will execute. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrivilegedOperation(PrivilegedOperation.OperationType opType, String arg) PrivilegedOperation(PrivilegedOperation.OperationType opType, List<String> args) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendArgs(String... args) voidappendArgs(List<String> args) voidvoidbooleaninthashCode()boolean
-
Field Details
-
LINUX_FILE_PATH_SEPARATOR
public static final char LINUX_FILE_PATH_SEPARATOR- See Also:
-
CGROUP_ARG_PREFIX
- See Also:
-
CGROUP_ARG_NO_TASKS
- See Also:
-
-
Constructor Details
-
PrivilegedOperation
-
PrivilegedOperation
-
PrivilegedOperation
-
-
Method Details
-
appendArgs
-
appendArgs
-
enableFailureLogging
public void enableFailureLogging() -
disableFailureLogging
public void disableFailureLogging() -
isFailureLoggingEnabled
public boolean isFailureLoggingEnabled() -
getOperationType
-
getArguments
-
equals
-
hashCode
public int hashCode()
-