private void outputNfsV2(String header, Object nfs) { println(header + ":"); printnfs(nfs, new String[] { "null", "getattr", "setattr", "root", "lookup", "readlink" }); printnfs(nfs, new String[] { "read", "writecache", "write", "create", "remove", "rename" }); printnfs(nfs, new String[] { "link", "symlink", "mkdir", "rmdir", "readdir", "fsstat" }); println(""); flush(); }
private void outputStats(int flags) throws SigarException { if ((flags & NetFlags.CONN_TCP) != 0) { println("Tcp:"); try { outputTcpStats(); } catch (SigarException e) { println(" " + e); } } }
public void output(String[] args) throws SigarException { long[] pids = this.shell.findPids(args); for (int i=0; i<pids.length; i++) { try { output(pids[i]); } catch (SigarPermissionDeniedException e) { println(this.shell.getUserDeniedMessage(pids[i])); } catch (SigarException e) { println("(" + e.getMessage() + ")"); } println("\n------------------------\n"); } }
private static boolean addJarDir(String dir) throws Exception { URL[] jars = getLibJars(dir); addURLs(jars); return !missingJars(); }
public static void main(String[] args) throws Exception { new Ps().processCommand(args); } }
public static void main(String[] args) throws Exception { new Uptime().processCommand(args); } }
public static void main(String[] args) throws Exception { new MultiPs().processCommand(args); } }
public static void main(String[] args) throws Exception { new ShowArgs().processCommand(args); } }
public static void main(String[] args) throws Exception { new Who().processCommand(args); } }
public static void main(String[] args) throws Exception { new CpuInfo().processCommand(args); } }
public static void main(String[] args) throws Exception { new ProcModuleInfo().processCommand(args); } }
public static void main(String[] args) throws Exception { new Iostat().processCommand(args); } }
public static void main(String[] args) throws Exception { new SysInfo().processCommand(args); } }
public static void main(String[] args) throws Exception { new Df().processCommand(args); } }
public static void main(String[] args) throws Exception { new Du().processCommand(args); } }
private void outputNfsV3(String header, Object nfs) { println(header + ":"); printnfs(nfs, new String[] { "null", "getattr", "setattr", "lookup", "access", "readlink" }); printnfs(nfs, new String[] { "read", "write", "create", "mkdir", "symlink", "mknod" }); printnfs(nfs, new String[] { "remove", "rmdir", "rename", "link", "readdir", "readdirplus" }); printnfs(nfs, new String[] { "fsstat", "fsinfo", "pathconf", "commit", "", "" }); println(""); flush(); }