public class XLogUserFilterParam extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
XLogUserFilterParam() |
XLogUserFilterParam(Map<String,String[]> params)
Instantiates a new log user param.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String START_TIME
public static final String END_TIME
public static final String SEARCH_TEXT
public static final String LOG_LEVEL
public static final String LIMIT
public static final String RECENT_LOG_OFFSET
public static final String DEBUG
public static final ThreadLocal<SimpleDateFormat> dt
public XLogUserFilterParam()
public XLogUserFilterParam(Map<String,String[]> params) throws CommandException
params
- the paramsCommandException
- the command exceptionpublic String getLogLevel()
public Date getStartDate()
public Date getEndDate()
public String getSearchText()
public void validateLogLevel(String loglevel) throws CommandException
CommandException
public void validateSearchText() throws CommandException
CommandException
- the command exceptionpublic Date getDate(String date)
String
- datepublic boolean isDebug()
public Date getEndTime()
public int getEndOffset()
public int getRecent()
public int getLimit()
public int getStartOffset()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.