public class SMARTParser extends ShellParser
| Constructor and Description |
|---|
SMARTParser()
Constructs a SMARTParser and reads the list of disk
devices to query
|
| 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 for
each one of the disks specified in the configuration.
|
EventRecord |
query(java.lang.String device)
Reads and parses the output of smartctl for a specified disk and
creates an appropriate EventRecord that holds the desirable
information for it.
|
findAll, findPattern, monitorpublic SMARTParser()
public EventRecord query(java.lang.String device) throws java.lang.Exception
query in class ShellParserdevice - the disk device name to queryjava.lang.Exceptionpublic EventRecord[] monitor()
monitor in interface Monitoredmonitor in class ShellParserpublic java.lang.String getInfo()
Copyright © 2009 The Apache Software Foundation