public abstract class ShellParser extends Object implements Monitored
| Constructor and Description |
|---|
ShellParser() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
findAll(String strPattern,
String text,
int grp,
String separator)
Finds all occurences of a pattern in a piece of text and returns
the matching groups.
|
protected String |
findPattern(String strPattern,
String text,
int grp)
Find the first occurence ofa pattern in a piece of text
and return a specific group.
|
abstract EventRecord[] |
monitor()
Get an array of all EventRecords that can be extracted for
the represented hardware component.
|
void |
monitor(LocalStore ls)
Insert all EventRecords that can be extracted for
the represented hardware component into a LocalStore.
|
abstract EventRecord |
query(String s) |
protected String findPattern(String strPattern, String text, int grp)
strPattern - the regular expression to matchtext - the text to searchgrp - the number of the matching group to returnprotected String findAll(String strPattern, String text, int grp, String separator)
strPattern - the regular expression to matchtext - the text to searchgrp - the number of the matching group to returnseparator - the string that separates occurences in the returned valuepublic void monitor(LocalStore ls)
public abstract EventRecord[] monitor()
Monitoredpublic abstract EventRecord query(String s) throws Exception
ExceptionCopyright © 2009 The Apache Software Foundation