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