public interface CgroupCommonOperation
| Modifier and Type | Method and Description | 
|---|---|
void | 
addProcs(int pid)
add a process to cgroup. 
 | 
void | 
addTask(int taskid)
add task to cgroup. 
 | 
boolean | 
getCgroupCloneChildren()
get the cgroup.clone_children config. 
 | 
boolean | 
getNotifyOnRelease()
to get the notify_on_release config. 
 | 
Set<Long> | 
getPids()
get the PIDs of processes running in cgroup. 
 | 
String | 
getReleaseAgent()
get the command for the relase agent to execute. 
 | 
Set<Integer> | 
getTasks()
Get a list of task ids running in CGroup. 
 | 
void | 
setCgroupCloneChildren(boolean flag)
Set the cgroup.clone_children config. 
 | 
void | 
setEventControl(String eventFd,
               String controlFd,
               String... args)
set event control config. 
 | 
void | 
setNotifyOnRelease(boolean flag)
to set notify_on_release config in cgroup. 
 | 
void | 
setReleaseAgent(String command)
set a command for the release agent to execute. 
 | 
void addTask(int taskid)
      throws IOException
add task to cgroup.
taskid - task id of task to addIOExceptionSet<Integer> getTasks() throws IOException
Get a list of task ids running in CGroup.
IOExceptionvoid addProcs(int pid)
       throws IOException
add a process to cgroup.
pid - the PID of the process to addIOExceptionSet<Long> getPids() throws IOException
get the PIDs of processes running in cgroup.
IOExceptionboolean getNotifyOnRelease()
                    throws IOException
to get the notify_on_release config.
IOExceptionvoid setNotifyOnRelease(boolean flag)
                 throws IOException
to set notify_on_release config in cgroup.
IOExceptionString getReleaseAgent() throws IOException
get the command for the relase agent to execute.
IOExceptionvoid setReleaseAgent(String command) throws IOException
set a command for the release agent to execute.
IOExceptionboolean getCgroupCloneChildren()
                        throws IOException
get the cgroup.clone_children config.
IOExceptionvoid setCgroupCloneChildren(boolean flag)
                     throws IOException
Set the cgroup.clone_children config.
IOExceptionvoid setEventControl(String eventFd, String controlFd, String... args) throws IOException
set event control config.
IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.