|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.contrib.failmon.ShellParser org.apache.hadoop.contrib.failmon.CPUParser
public class CPUParser
Objects of this class parse the /proc/cpuinfo file to gather information about present processors in the system.
Constructor Summary | |
---|---|
CPUParser()
Constructs a CPUParser |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.hadoop.contrib.failmon.ShellParser |
---|
findAll, findPattern, monitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CPUParser()
Method Detail |
---|
public EventRecord query(String s) throws Exception
query
in class ShellParser
s
- unused parameter
Exception
public EventRecord[] monitor()
monitor
in interface Monitored
monitor
in class ShellParser
public String getInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |