|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.util.XLogFilter
public class XLogFilter
Filter that will construct the regular expression that will be used to filter the log statement. And also checks if the given log message go through the filter. Filters that can be used are logLevel(Multi values separated by "|") jobId appName actionId token
| Field Summary | |
|---|---|
static String |
ALLOW_ALL_REGEX
|
static String |
MAX_ACTIONLIST_SCAN_DURATION
|
static String |
MAX_SCAN_DURATION
|
| Constructor Summary | |
|---|---|
XLogFilter()
|
|
XLogFilter(XLogUserFilterParam userLogFilter)
|
|
| Method Summary | |
|---|---|
Date |
adjustOffset(Date date,
int offset)
Adjust offset, offset will always be in min. |
void |
calculateAndValidateDateRange(Date jobStartTime,
Date jobEndTime)
Calculate and validate date range. |
void |
constructPattern()
Constructs the regular expression according to the filter and assigns it to fileterPattarn. |
static void |
defineParameter(String filterParam)
|
String |
getDebugMessage()
|
Date |
getEndDate()
|
Map<String,String> |
getFilterParams()
|
String |
getFormattedEndDate()
|
String |
getFormattedStartDate()
|
int |
getLogLimit()
|
static Pattern |
getSplitterPattern()
|
Date |
getStartDate()
|
XLogUserFilterParam |
getUserLogFilter()
|
boolean |
isActionList()
|
boolean |
isDebugMode()
|
boolean |
isFilterPresent()
|
boolean |
matches(ArrayList<String> logParts)
Checks if the logLevel and logMessage goes through the logFilter. |
static void |
reset()
|
void |
setActionList(boolean isActionList)
|
void |
setLogLevel(String logLevel)
|
void |
setParameter(String filterParam,
String value)
|
void |
setUserLogFilter(XLogUserFilterParam userLogFilter)
|
ArrayList<String> |
splitLogMessage(String logLine)
Splits the log line into timestamp, logLevel and remaining log message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String MAX_ACTIONLIST_SCAN_DURATION
public static String MAX_SCAN_DURATION
public static final String ALLOW_ALL_REGEX
| Constructor Detail |
|---|
public XLogFilter()
public XLogFilter(XLogUserFilterParam userLogFilter)
| Method Detail |
|---|
public void setLogLevel(String logLevel)
public void setParameter(String filterParam,
String value)
public static void defineParameter(String filterParam)
public boolean isFilterPresent()
public boolean matches(ArrayList<String> logParts)
logParts -
public ArrayList<String> splitLogMessage(String logLine)
logLine -
public void constructPattern()
public static void reset()
public final Map<String,String> getFilterParams()
public XLogUserFilterParam getUserLogFilter()
public void setUserLogFilter(XLogUserFilterParam userLogFilter)
public Date getEndDate()
public String getFormattedEndDate()
public String getFormattedStartDate()
public Date getStartDate()
public boolean isDebugMode()
public int getLogLimit()
public String getDebugMessage()
public boolean isActionList()
public void setActionList(boolean isActionList)
public static Pattern getSplitterPattern()
public void calculateAndValidateDateRange(Date jobStartTime,
Date jobEndTime)
throws IOException
jobStartTime - the job start timejobEndTime - the job end time
IOException - Signals that an I/O exception has occurred.
public Date adjustOffset(Date date,
int offset)
throws IOException
date - the dateoffset - the offset
IOException - Signals that an I/O exception has occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||