org.apache.oozie.util
Class XLogUserFilterParam

java.lang.Object
  extended by org.apache.oozie.util.XLogUserFilterParam

public class XLogUserFilterParam
extends Object


Field Summary
static String DEBUG
           
static ThreadLocal<SimpleDateFormat> dt
           
static String END_TIME
           
static String LIMIT
           
static String LOG_LEVEL
           
static String RECENT_LOG_OFFSET
           
static String SEARCH_TEXT
           
static String START_TIME
           
 
Constructor Summary
XLogUserFilterParam()
           
XLogUserFilterParam(Map<String,String[]> params)
          Instantiates a new log user param.
 
Method Summary
 Date getDate(String date)
          Gets the date.
 Date getEndDate()
          Gets the end date.
 int getEndOffset()
           
 Date getEndTime()
           
 int getLimit()
           
 String getLogLevel()
          Gets the log level.
 int getRecent()
           
 String getSearchText()
          Gets the search text.
 Date getStartDate()
          Gets the start date.
 int getStartOffset()
           
 boolean isDebug()
          Checks if is debug.
 String toString()
           
 void validateLogLevel(String loglevel)
          Validate log level.
 void validateSearchText()
          Validate search text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

START_TIME

public static final String START_TIME
See Also:
Constant Field Values

END_TIME

public static final String END_TIME
See Also:
Constant Field Values

SEARCH_TEXT

public static final String SEARCH_TEXT
See Also:
Constant Field Values

LOG_LEVEL

public static final String LOG_LEVEL
See Also:
Constant Field Values

LIMIT

public static final String LIMIT
See Also:
Constant Field Values

RECENT_LOG_OFFSET

public static final String RECENT_LOG_OFFSET
See Also:
Constant Field Values

DEBUG

public static final String DEBUG
See Also:
Constant Field Values

dt

public static final ThreadLocal<SimpleDateFormat> dt
Constructor Detail

XLogUserFilterParam

public XLogUserFilterParam()

XLogUserFilterParam

public XLogUserFilterParam(Map<String,String[]> params)
                    throws CommandException
Instantiates a new log user param.

Parameters:
params - the params
Throws:
CommandException - the command exception
Method Detail

getLogLevel

public String getLogLevel()
Gets the log level.

Returns:
the log level

getStartDate

public Date getStartDate()
Gets the start date.

Returns:
the start date

getEndDate

public Date getEndDate()
Gets the end date.

Returns:
the end date

getSearchText

public String getSearchText()
Gets the search text.

Returns:
the search text

validateLogLevel

public void validateLogLevel(String loglevel)
                      throws CommandException
Validate log level.

Throws:
CommandException

validateSearchText

public void validateSearchText()
                        throws CommandException
Validate search text.

Throws:
CommandException - the command exception

getDate

public Date getDate(String date)
Gets the date. Date can in TZ or yyyy-MM-dd HH:mm:ss,SSS format

Parameters:
String - date
Returns:
the date

isDebug

public boolean isDebug()
Checks if is debug.

Returns:
true, if it's debug

getEndTime

public Date getEndTime()

getEndOffset

public int getEndOffset()

getRecent

public int getRecent()

getLimit

public int getLimit()

getStartOffset

public int getStartOffset()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Apache Software Foundation. All Rights Reserved.