Examples of PsOutput


Examples of org.apache.hadoop.chukwa.extraction.demux.processor.mapper.Ps.PsOutput

        + "    1 root       2064   284  0.0  0.0 00:00:02  2008   Dec 29 init [5]\n"
        + "    2 root          0     0  0.0  0.0 00:00:01  2008   Dec 29 [migration/0]\n"
        + "20270 chzhang    4248   588  0.0  0.0 00:00:00 15:32 15:32:36 ps axo pid,user,vsize,size,pcpu,pmem,time,start_time,start,cmd\n"
        + "28371 angelac2   7100  1716  0.0  0.0 00:00:00 Feb27   Feb 27 /usr/libexec/gconfd-2 5\n";

    PsOutput pso = new PsOutput(output);
    ArrayList<HashMap<String, String>> processes = pso.getProcessList();
    assertEquals(4, processes.size());
    assertEquals("Dec29", processes.get(0).get("STARTED"));
    assertEquals("15:32:36", processes.get(2).get("STARTED"));
    assertEquals(
        "ps axo pid,user,vsize,size,pcpu,pmem,time,start_time,start,cmd",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.