|
TPTP 4.4.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.logging.adapter.util.AbstractXPATHFilterExit
This abstract class represents a Filter Exit class for filtering on the severity and timestamp of a log event using XPATH filtering of a CommonBaseEvent.
| Constructor Summary | |
|---|---|
AbstractXPATHFilterExit()
AbstractXPATHFilterExit constructor |
|
| Method Summary | |
|---|---|
boolean |
filter(java.lang.String record)
Filter the data specified and return true if the data is to be included for parsing |
protected org.eclipse.hyades.logging.events.cbe.CommonBaseEvent |
getCommonBaseEvent()
Return the CommonBaseEvent object that is used for filtering the log record |
java.lang.String |
getCurrentCreationTime()
Get the creation time of the record that was parsed from the last record that was filtered. |
short |
getCurrentSeverity()
Get the severity of the record that was parsed from the last record that was filtered. |
int |
getDay()
Returns the day that is used to format the timestamp in the case where the record does not contain a day. |
protected java.lang.String |
getFilterSpecification()
Return the filter specification |
java.util.Locale |
getLocale()
Returns the Locale that is used for parsing the timestamp. |
int |
getMonth()
Returns the month that is used to format the timestamp in the case where the record does not contain a month. |
java.lang.String |
getTimezone()
Returns the timezone that is used to format the timestamp in the case where the record does not contain a timezone indicator. |
com.ibm.icu.util.ULocale |
getULocale()
Returns the ULocale that is used for parsing the timestamp. |
int |
getYear()
Returns the year that is used to format the timestamp in the case where the record does not contain a year. |
protected boolean |
isFilterOnCreationTime()
|
protected boolean |
isFilterOnSeverity()
|
protected void |
setCommonBaseEvent(java.lang.String record)
Set the CommonBaseEvent that is used for filtering based on the log record. |
void |
setDay(int day)
Set the day that is used to format the timestamp in the case where the record does not contain a day. |
void |
setFilterSpecification(java.lang.String filterSpec)
Set the filter specification to be used when filtering. |
void |
setLocale(java.util.Locale locale)
Set the Locale that is used for parsing the timestamp. |
void |
setMonth(int month)
Set the month that is used to format the timestamp in the case where the record does not contain a month. |
void |
setTimezone(java.lang.String timezone)
Set the timezone that is used to format the timestamp in the case where the record does not contain a timezone indicator. |
void |
setULocale(com.ibm.icu.util.ULocale ulocale)
Set the ULocale that is used for parsing the timestamp. |
void |
setYear(int year)
Set the year that is used to format the timestamp in the case where the record does not contain a year. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.hyades.logging.adapter.util.ISeverityFilterExit |
|---|
parseSeverity |
| Methods inherited from interface org.eclipse.hyades.logging.adapter.util.ITimeFilterExit |
|---|
parseTime |
| Constructor Detail |
public AbstractXPATHFilterExit()
throws java.lang.InstantiationException
java.lang.InstantiationException - if an error occurs instantiating required objects.| Method Detail |
public boolean filter(java.lang.String record)
IFilterExit
filter in interface IFilterExitrecord - - the data to filter
protected java.lang.String getFilterSpecification()
protected org.eclipse.hyades.logging.events.cbe.CommonBaseEvent getCommonBaseEvent()
protected void setCommonBaseEvent(java.lang.String record)
record - String representing the log record to be filtered.public short getCurrentSeverity()
public java.lang.String getCurrentCreationTime()
public void setFilterSpecification(java.lang.String filterSpec)
throws InvalidFilterSpecification
IFilterExit
setFilterSpecification in interface IFilterExitfilterSpec - - the filter specification
InvalidFilterSpecification - if the filter specification is invalidpublic int getDay()
ITimeFilterExit
getDay in interface ITimeFilterExitpublic java.util.Locale getLocale()
ITimeFilterExit
getLocale in interface ITimeFilterExitpublic int getMonth()
ITimeFilterExit
getMonth in interface ITimeFilterExitpublic java.lang.String getTimezone()
ITimeFilterExit
getTimezone in interface ITimeFilterExitpublic com.ibm.icu.util.ULocale getULocale()
ITimeFilterExit
getULocale in interface ITimeFilterExitpublic int getYear()
ITimeFilterExit
getYear in interface ITimeFilterExitpublic void setDay(int day)
ITimeFilterExit
setDay in interface ITimeFilterExitday - int value representing the day to use for formattingpublic void setLocale(java.util.Locale locale)
ITimeFilterExit
setLocale in interface ITimeFilterExitlocale - public void setMonth(int month)
ITimeFilterExit
setMonth in interface ITimeFilterExitmonth - int value representing the month to use for formattingpublic void setTimezone(java.lang.String timezone)
ITimeFilterExit
setTimezone in interface ITimeFilterExittimezone - String representing the time zone to be used for formattingpublic void setULocale(com.ibm.icu.util.ULocale ulocale)
ITimeFilterExit
setULocale in interface ITimeFilterExitulocale - public void setYear(int year)
ITimeFilterExit
setYear in interface ITimeFilterExityear - int value representing the year to use for formattingprotected boolean isFilterOnSeverity()
protected boolean isFilterOnCreationTime()
|
TPTP 4.4.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||