Class LogQueryBean
- java.lang.Object
- 
- com.ibm.websphere.logging.hpel.reader.LogQueryBean
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class LogQueryBean extends java.lang.Object implements java.io.SerializableSimple 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.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description LogQueryBean()default constructor, allows use of the set methods
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.regex.Patterncompile(java.lang.String pattern)compiles pattern string into regular expression Pattern object.booleanequals(java.lang.Object obj)java.lang.String[]getExcludeLoggers()gets the current array of loggers to exclude (all regular expressions)java.lang.String[]getExcludeMessages()gets the current array of messages to exclude (all regular expressions)java.lang.String[]getIncludeLoggers()gets the current array of loggers to include (all regular expressions)java.util.logging.LevelgetMaxLevel()gets current value of maximum leveljava.util.DategetMaxTime()gets the current value of the maximum timejava.lang.String[]getMessageContent()gets current array of message content search stringsjava.util.logging.LevelgetMinLevel()gets the current value of minimum leveljava.util.DategetMinTime()gets the current value of the minimum timeint[]getThreadIDs()gets current array of threads to search for specificallyinthashCode()voidsetExcludeLoggers(java.lang.String[] excludeLoggers)sets string array of loggers to exclude in queryvoidsetExcludeMessages(java.lang.String[] excludeMessages)sets string array of messages to exclude in queryvoidsetIncludeLoggers(java.lang.String[] includeLoggers)sets string array of loggers to include in queryvoidsetLevels(java.util.logging.Level minLevel, java.util.logging.Level maxLevel)sets the current value for the minimum and maximum levelsvoidsetMessageContent(java.lang.String[] messageContent)sets string array of message contentsvoidsetThreadIDs(int[] threadIDs)sets integer array of thread ids to search onvoidsetThreadIDs(java.lang.String[] threadIDs)sets string array, each string representing the hex value of a thread to search onvoidsetTime(java.util.Date minTime, java.util.Date maxTime)sets the current value for the minimum and maximum timejava.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
getMinTimepublic java.util.Date getMinTime() gets the current value of the minimum time- Returns:
- minimum time
 
 - 
getMaxTimepublic java.util.Date getMaxTime() gets the current value of the maximum time- Returns:
- maximum time
 
 - 
setTimepublic void setTime(java.util.Date minTime, java.util.Date maxTime) throws java.lang.IllegalArgumentExceptionsets the current value for the minimum and maximum time- Parameters:
- minTime- minimum time
- maxTime- maximum time
- Throws:
- java.lang.IllegalArgumentException- if minTime is later than maxTime
 
 - 
getMinLevelpublic java.util.logging.Level getMinLevel() gets the current value of minimum level- Returns:
- minimum level
 
 - 
getMaxLevelpublic java.util.logging.Level getMaxLevel() gets current value of maximum level- Returns:
- maximum level
 
 - 
setLevelspublic void setLevels(java.util.logging.Level minLevel, java.util.logging.Level maxLevel) throws java.lang.IllegalArgumentExceptionsets the current value for the minimum and maximum levels- Parameters:
- minLevel- minimum level
- Throws:
- java.lang.IllegalArgumentException- if minLevel is bigger than maxLevel
 
 - 
getMessageContentpublic java.lang.String[] getMessageContent() gets current array of message content search strings- Returns:
- message content string (string to search message content for)
 
 - 
setMessageContentpublic void setMessageContent(java.lang.String[] messageContent) throws java.lang.IllegalArgumentExceptionsets string array of message contents- Parameters:
- messageContent- array of strings, representing content to search messages for
- Throws:
- java.lang.IllegalArgumentException- if string contains illegal patterns
 
 - 
getExcludeMessagespublic java.lang.String[] getExcludeMessages() gets the current array of messages to exclude (all regular expressions)- Returns:
- exclude logger array
 
 - 
setExcludeMessagespublic void setExcludeMessages(java.lang.String[] excludeMessages) throws java.lang.IllegalArgumentExceptionsets string array of messages to exclude in query- Parameters:
- excludeMessages- array of strings, each being a regular expression search for messages to exclude
- Throws:
- java.lang.IllegalArgumentException- if strings contain illegal patterns
 
 - 
getIncludeLoggerspublic java.lang.String[] getIncludeLoggers() gets the current array of loggers to include (all regular expressions)- Returns:
- include logger array
 
 - 
setIncludeLoggerspublic void setIncludeLoggers(java.lang.String[] includeLoggers) throws java.lang.IllegalArgumentExceptionsets string array of loggers to include in query- Parameters:
- includeLoggers- array of strings, each being a regular expression search for loggers
- Throws:
- java.lang.IllegalArgumentException- if strings contain illegal patterns
 
 - 
getExcludeLoggerspublic java.lang.String[] getExcludeLoggers() gets the current array of loggers to exclude (all regular expressions)- Returns:
- exclude logger array
 
 - 
setExcludeLoggerspublic void setExcludeLoggers(java.lang.String[] excludeLoggers) throws java.lang.IllegalArgumentExceptionsets string array of loggers to exclude in query- Parameters:
- excludeLoggers- array of strings, each being a regular expression search for loggers to exclude
- Throws:
- java.lang.IllegalArgumentException- if strings contain illegal patterns
 
 - 
compilepublic static java.util.regex.Pattern compile(java.lang.String pattern) throws java.lang.IllegalArgumentExceptioncompiles pattern string into regular expression Pattern object.- Parameters:
- pattern- string containing WebSphere console specific pattern
- Returns:
- compiled version of the string
- Throws:
- java.lang.IllegalArgumentException- if pattern is null or contains an illegal pattern.
 
 - 
getThreadIDspublic int[] getThreadIDs() gets current array of threads to search for specifically- Returns:
- array of threads in search
 
 - 
setThreadIDspublic void setThreadIDs(int[] threadIDs) sets integer array of thread ids to search on- Parameters:
- threadIDs- array of thread ids (null if not filtering on threadId)
 
 - 
setThreadIDspublic void setThreadIDs(java.lang.String[] threadIDs) throws java.lang.IllegalArgumentExceptionsets string array, each string representing the hex value of a thread to search on- Parameters:
- threadIDs- array of thread ids (hex) (null if not filtering on threadId)
- Throws:
- java.lang.IllegalArgumentException- if strings contain something other than hexadecimal values.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-