|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.logging.hpel.reader.LogQueryBean
public class LogQueryBean
Simple bean class to hold more static parts of a given query. The client layer in the remote reader infraStructure has several scenarios where it must reQuery the host with various differences (ie: populating the next serverInstance or populating the next n rows of the current server instance). This stores the parts of the query less likely to change in those scenarios.
Constructor Summary | |
---|---|
LogQueryBean()
default constructor, allows use of the set methods |
Method Summary | |
---|---|
static java.util.regex.Pattern |
compile(java.lang.String pattern)
compiles pattern string into regular expression Pattern object. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String[] |
getExcludeLoggers()
gets the current array of loggers to exclude (all regular expressions) |
java.lang.String[] |
getIncludeLoggers()
gets the current array of loggers to include (all regular expressions) |
java.util.logging.Level |
getMaxLevel()
gets current value of maximum level |
java.util.Date |
getMaxTime()
gets the current value of the maximum time |
java.lang.String[] |
getMessageContent()
gets current array of message content search strings |
java.util.logging.Level |
getMinLevel()
gets the current value of minimum level |
java.util.Date |
getMinTime()
gets the current value of the minimum time |
int[] |
getThreadIDs()
gets current array of threads to search for specifically |
int |
hashCode()
|
void |
setExcludeLoggers(java.lang.String[] excludeLoggers)
sets string array of loggers to exclude in query |
void |
setIncludeLoggers(java.lang.String[] includeLoggers)
sets string array of loggers to include in query |
void |
setLevels(java.util.logging.Level minLevel,
java.util.logging.Level maxLevel)
sets the current value for the minimum and maximum levels |
void |
setMessageContent(java.lang.String[] messageContent)
sets string array of message contents |
void |
setThreadIDs(int[] threadIDs)
sets integer array of thread ids to search on |
void |
setThreadIDs(java.lang.String[] threadIDs)
sets string array, each string representing the hex value of a thread to search on |
void |
setTime(java.util.Date minTime,
java.util.Date maxTime)
sets the current value for the minimum and maximum time |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogQueryBean()
Method Detail |
---|
public java.util.Date getMinTime()
public java.util.Date getMaxTime()
public void setTime(java.util.Date minTime, java.util.Date maxTime) throws java.lang.IllegalArgumentException
minTime
- minimum timemaxTime
- maximum time
java.lang.IllegalArgumentException
- if minTime is later than maxTimepublic java.util.logging.Level getMinLevel()
public java.util.logging.Level getMaxLevel()
public void setLevels(java.util.logging.Level minLevel, java.util.logging.Level maxLevel) throws java.lang.IllegalArgumentException
minLevel
- minimum level
java.lang.IllegalArgumentException
- if minLevel is bigger than maxLevelpublic java.lang.String[] getMessageContent()
public void setMessageContent(java.lang.String[] messageContent) throws java.lang.IllegalArgumentException
messageContent
- array of strings, representing content to search messages for
java.lang.IllegalArgumentException
- if string contains illegal patternspublic java.lang.String[] getIncludeLoggers()
public void setIncludeLoggers(java.lang.String[] includeLoggers) throws java.lang.IllegalArgumentException
includeLoggers
- array of strings, each being a regular expression search for loggers
java.lang.IllegalArgumentException
- if strings contain illegal patternspublic java.lang.String[] getExcludeLoggers()
public void setExcludeLoggers(java.lang.String[] excludeLoggers) throws java.lang.IllegalArgumentException
excludeLoggers
- array of strings, each being a regular expression search for loggers to exclude
java.lang.IllegalArgumentException
- if strings contain illegal patternspublic static java.util.regex.Pattern compile(java.lang.String pattern) throws java.lang.IllegalArgumentException
pattern
- string containing WebSphere console specific pattern
java.lang.IllegalArgumentException
- if pattern is null or contains an illegal pattern.public int[] getThreadIDs()
public void setThreadIDs(int[] threadIDs)
threadIDs
- array of thread ids (null if not filtering on threadId)public void setThreadIDs(java.lang.String[] threadIDs) throws java.lang.IllegalArgumentException
threadIDs
- array of thread ids (hex) (null if not filtering on threadId)
java.lang.IllegalArgumentException
- if strings contain something other than hexadecimal values.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |