|
||||||||||
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.SensorsParser
public class SensorsParser
Objects of this class parse the output of the lm-sensors utility to gather information about fan speed, temperatures for cpus and motherboard etc.
Constructor Summary | |
---|---|
SensorsParser()
|
Method Summary | |
---|---|
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 the output of the 'sensors' command 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 SensorsParser()
Method Detail |
---|
public EventRecord query(java.lang.String s) throws java.lang.Exception
query
in class ShellParser
s
- unused parameter
java.lang.Exception
public EventRecord[] monitor()
monitor
in interface Monitored
monitor
in class ShellParser
public java.lang.String getInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |