|
||||||||||
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.NICParser
public class NICParser
Objects of this class parse the output of ifconfig to gather information about present Network Interface Cards in the system. The list of NICs to poll is specified in the configuration file.
Constructor Summary | |
---|---|
NICParser()
Constructs a NICParser and reads the list of NICs to query |
Method Summary | |
---|---|
String |
getInfo()
Return a String with information about this class |
EventRecord[] |
monitor()
Invokes query() to do the parsing and handles parsing errors for each one of the NICs specified in the configuration. |
EventRecord |
query(String device)
Reads and parses the output of ifconfig for a specified NIC and creates an appropriate EventRecord that holds the desirable information for it. |
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 NICParser()
Method Detail |
---|
public EventRecord query(String device) throws UnknownHostException
query
in class ShellParser
device
- the NIC device name to query
UnknownHostException
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 |