|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ShellParsers - unused parameter
Exceptionpublic EventRecord[] monitor()
monitor in interface Monitoredmonitor in class ShellParserpublic String getInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||