org.opennms.web.alarm.filter
Class LogMessageMatchesAnyFilter
java.lang.Object
org.opennms.web.alarm.filter.LogMessageMatchesAnyFilter
- All Implemented Interfaces:
- Filter
public class LogMessageMatchesAnyFilter
- extends Object
- implements Filter
- Author:
- James Zuo
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
substrings
protected String[] substrings
LogMessageMatchesAnyFilter
public LogMessageMatchesAnyFilter(String stringList)
- Parameters:
stringList - a space-delimited list of search substrings
LogMessageMatchesAnyFilter
public LogMessageMatchesAnyFilter(String[] substrings)
getSql
public String getSql()
- Description copied from interface:
Filter
- Returns an expresions for a SQL where clause. Remember to include a
trailing space, but no leading AND or OR.
- Specified by:
getSql in interface Filter
getDescription
public String getDescription()
- Description copied from interface:
Filter
- Returns a terse string (including a "=") that describes this filter in
such a way to easily be included in an HTTP GET parameter.
Some examples:
- "node=1"
- "interface=192.168.0.1"
- "severity=3"
- "nodenamelike=opennms"
- Specified by:
getDescription in interface Filter
getTextDescription
public String getTextDescription()
- Description copied from interface:
Filter
- Returns a terse but human-readable string describing this filter in such
a way to easily be included in a search results list.
Some examples (corresponding to the examples in
getDescription):
- "node=nodelabel_of_node_1"
- "interface=192.168.0.1"
- "severity=Normal"
- "node name containing \"opennms\""
- Specified by:
getTextDescription in interface Filter
toString
public String toString()
- Overrides:
toString in class Object
getSubstrings
public String[] getSubstrings()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getQueryString
public String getQueryString()
Copyright ? 2007. All Rights Reserved.