package me.haosdent.cgroup.subsystem;

import me.haosdent.cgroup.manage.Group;
import me.haosdent.cgroup.util.Constants;

public class NetPrio extends Common {

  public static final int subsystem = Constants.SUBSYS_NET_PRIO;

  public NetPrio(Group group) {
    super(group);
  }

  public void getPrioId() {};

  public void getIfPrioMap() {};

  public void addIfPrioMap() {};
}

@@ -115,16 +115,45 @@
 tants;%0A%0A
+import java.io.IOException;%0A%0A
 public c
@@ -209,25 +209,22 @@
 nal int 
-subsystem
+SUBSYS
  = Const
@@ -244,16 +244,166 @@
 ET_PRIO;
+%0A  public static final String PROP_NET_PRIO_PRIOIDX = %22net_prio.prioidx%22;%0A  public static final String PROP_NET_PRIO_IFPRIOMAP = %22net_prio.ifpriomap%22;
 %0A%0A  publ
@@ -456,28 +456,27 @@
 %7D%0A%0A  public 
-void
+int
  getPrioId()
@@ -476,19 +476,150 @@
 rioId() 
-%7B%7D;
+throws IOException %7B%0A    String result = shell.cgget(group.getName(), PROP_NET_PRIO_PRIOIDX);%0A    return Integer.parseInt(result);%0A  %7D
 %0A%0A  publ
@@ -621,20 +621,22 @@
  public 
-void
+String
  getIfPr
@@ -647,44 +647,391 @@
 p() 
-%7B%7D;%0A%0A  public void addIfPrioMap() %7B%7D;
+throws IOException %7B%0A    String result = shell.cgget(group.getName(), PROP_NET_PRIO_IFPRIOMAP);%0A    return result;%0A  %7D%0A%0A  public void addIfPrioMap(String iface, int priority) throws IOException %7B%0A    StringBuilder sb = new StringBuilder();%0A    sb.append(iface);%0A    sb.append(' ');%0A    sb.append(priority);%0A    shell.cgset(group.getName(), PROP_NET_PRIO_IFPRIOMAP, sb.toString());%0A  %7D
 %0A%7D%0A

Implement methods in NetPrio.java