public class CPUParser extends ShellParser
Constructor and Description |
---|
CPUParser()
Constructs a CPUParser
|
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Return a String with information about this class
|
EventRecord[] |
monitor()
Invokes query() to do the parsing and handles parsing errors.
|
EventRecord |
query(String s)
Reads and parses /proc/cpuinfo and creates an appropriate
EventRecord that holds the desirable information.
|
findAll, findPattern, monitor
public EventRecord query(String s) throws Exception
query
in class ShellParser
s
- unused parameterException
public EventRecord[] monitor()
monitor
in interface Monitored
monitor
in class ShellParser
public String getInfo()
Copyright © 2010 The Apache Software Foundation