Class CgroupCommon
java.lang.Object
org.apache.storm.container.cgroup.CgroupCommon
- All Implemented Interfaces:
- CgroupCommonOperation
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCgroupCommon(String name, Hierarchy hierarchy, CgroupCommon parent) CgroupCommon(Hierarchy hierarchy, String dir) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddProcs(int pid) add a process to cgroup.voidaddTask(int taskId) add task to cgroup.voiddelete()booleanbooleanget the cgroup.clone_children config.getCores()getDir()getName()booleanto get the notify_on_release config.getPids()get the PIDs of processes running in cgroup.get the command for the relase agent to execute.getTasks()Get a list of task ids running in CGroup.inthashCode()booleanisRoot()voidsetCgroupCloneChildren(boolean flag) Set the cgroup.clone_children config.voidsetEventControl(String eventFd, String controlFd, String... args) set event control config.voidsetNotifyOnRelease(boolean flag) to set notify_on_release config in cgroup.voidsetReleaseAgent(String command) set a command for the release agent to execute.toString()
- 
Field Details- 
TASKS- See Also:
 
- 
NOTIFY_ON_RELEASE- See Also:
 
- 
RELEASE_AGENT- See Also:
 
- 
CGROUP_CLONE_CHILDREN- See Also:
 
- 
CGROUP_EVENT_CONTROL- See Also:
 
- 
CGROUP_PROCS- See Also:
 
 
- 
- 
Constructor Details- 
CgroupCommon
- 
CgroupCommon
 
- 
- 
Method Details- 
addTaskDescription copied from interface:CgroupCommonOperationadd task to cgroup.- Specified by:
- addTaskin interface- CgroupCommonOperation
- Parameters:
- taskId- task id of task to add
- Throws:
- IOException
 
- 
getTasksDescription copied from interface:CgroupCommonOperationGet a list of task ids running in CGroup.- Specified by:
- getTasksin interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
addProcsDescription copied from interface:CgroupCommonOperationadd a process to cgroup.- Specified by:
- addProcsin interface- CgroupCommonOperation
- Parameters:
- pid- the PID of the process to add
- Throws:
- IOException
 
- 
getPidsDescription copied from interface:CgroupCommonOperationget the PIDs of processes running in cgroup.- Specified by:
- getPidsin interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
getNotifyOnReleaseDescription copied from interface:CgroupCommonOperationto get the notify_on_release config.- Specified by:
- getNotifyOnReleasein interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
setNotifyOnReleaseDescription copied from interface:CgroupCommonOperationto set notify_on_release config in cgroup.- Specified by:
- setNotifyOnReleasein interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
getReleaseAgentDescription copied from interface:CgroupCommonOperationget the command for the relase agent to execute.- Specified by:
- getReleaseAgentin interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
setReleaseAgentDescription copied from interface:CgroupCommonOperationset a command for the release agent to execute.- Specified by:
- setReleaseAgentin interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
getCgroupCloneChildrenDescription copied from interface:CgroupCommonOperationget the cgroup.clone_children config.- Specified by:
- getCgroupCloneChildrenin interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
setCgroupCloneChildrenDescription copied from interface:CgroupCommonOperationSet the cgroup.clone_children config.- Specified by:
- setCgroupCloneChildrenin interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
setEventControlDescription copied from interface:CgroupCommonOperationset event control config.- Specified by:
- setEventControlin interface- CgroupCommonOperation
- Throws:
- IOException
 
- 
getHierarchy
- 
getName
- 
getDir
- 
getParent
- 
getChildren
- 
isRootpublic boolean isRoot()
- 
getCores
- 
delete- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-