public abstract class ShellParser extends java.lang.Object implements Monitored
Constructor and Description |
---|
ShellParser() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
findAll(java.lang.String strPattern,
java.lang.String text,
int grp,
java.lang.String separator)
Finds all occurences of a pattern in a piece of text and returns
the matching groups.
|
protected java.lang.String |
findPattern(java.lang.String strPattern,
java.lang.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(java.lang.String s) |
protected java.lang.String findPattern(java.lang.String strPattern, java.lang.String text, int grp)
strPattern
- the regular expression to matchtext
- the text to searchgrp
- the number of the matching group to returnprotected java.lang.String findAll(java.lang.String strPattern, java.lang.String text, int grp, java.lang.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()
Monitored
public abstract EventRecord query(java.lang.String s) throws java.lang.Exception
java.lang.Exception
Copyright © 2009 The Apache Software Foundation