Interface CgroupCommonOperation

  • All Known Implementing Classes:
    CgroupCommon

    public interface CgroupCommonOperation
    • Method Detail

      • addTask

        void addTask​(int taskid)
              throws IOException
        add task to cgroup.
        Parameters:
        taskid - task id of task to add
        Throws:
        IOException
      • addProcs

        void addProcs​(int pid)
               throws IOException
        add a process to cgroup.
        Parameters:
        pid - the PID of the process to add
        Throws:
        IOException
      • getNotifyOnRelease

        boolean getNotifyOnRelease()
                            throws IOException
        to get the notify_on_release config.
        Throws:
        IOException
      • setNotifyOnRelease

        void setNotifyOnRelease​(boolean flag)
                         throws IOException
        to set notify_on_release config in cgroup.
        Throws:
        IOException
      • setReleaseAgent

        void setReleaseAgent​(String command)
                      throws IOException
        set a command for the release agent to execute.
        Throws:
        IOException
      • getCgroupCloneChildren

        boolean getCgroupCloneChildren()
                                throws IOException
        get the cgroup.clone_children config.
        Throws:
        IOException
      • setCgroupCloneChildren

        void setCgroupCloneChildren​(boolean flag)
                             throws IOException
        Set the cgroup.clone_children config.
        Throws:
        IOException