Class LogQueryBean
java.lang.Object
com.ibm.websphere.logging.hpel.reader.LogQueryBean
- All Implemented Interfaces:
- Serializable
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.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Patterncompiles pattern string into regular expression Pattern object.booleanString[]gets the current array of loggers to exclude (all regular expressions)String[]gets the current array of messages to exclude (all regular expressions)String[]gets the current array of loggers to include (all regular expressions)gets current value of maximum levelgets the current value of the maximum timeString[]gets current array of message content search stringsgets the current value of minimum levelgets the current value of the minimum timeint[]gets current array of threads to search for specificallyinthashCode()voidsetExcludeLoggers(String[] excludeLoggers) sets string array of loggers to exclude in queryvoidsetExcludeMessages(String[] excludeMessages) sets string array of messages to exclude in queryvoidsetIncludeLoggers(String[] includeLoggers) sets string array of loggers to include in queryvoidsets the current value for the minimum and maximum levelsvoidsetMessageContent(String[] messageContent) sets string array of message contentsvoidsetThreadIDs(int[] threadIDs) sets integer array of thread ids to search onvoidsetThreadIDs(String[] threadIDs) sets string array, each string representing the hex value of a thread to search onvoidsets the current value for the minimum and maximum timetoString()
- 
Constructor Details- 
LogQueryBeanpublic LogQueryBean()default constructor, allows use of the set methods
 
- 
- 
Method Details- 
getMinTimegets the current value of the minimum time- Returns:
- minimum time
 
- 
getMaxTimegets the current value of the maximum time- Returns:
- maximum time
 
- 
setTimesets the current value for the minimum and maximum time- Parameters:
- minTime- minimum time
- maxTime- maximum time
- Throws:
- IllegalArgumentException- if minTime is later than maxTime
 
- 
getMinLevelgets the current value of minimum level- Returns:
- minimum level
 
- 
getMaxLevelgets current value of maximum level- Returns:
- maximum level
 
- 
setLevelssets the current value for the minimum and maximum levels- Parameters:
- minLevel- minimum level
- Throws:
- IllegalArgumentException- if minLevel is bigger than maxLevel
 
- 
getMessageContentgets current array of message content search strings- Returns:
- message content string (string to search message content for)
 
- 
setMessageContentsets string array of message contents- Parameters:
- messageContent- array of strings, representing content to search messages for
- Throws:
- IllegalArgumentException- if string contains illegal patterns
 
- 
getExcludeMessagesgets the current array of messages to exclude (all regular expressions)- Returns:
- exclude logger array
 
- 
setExcludeMessagessets string array of messages to exclude in query- Parameters:
- excludeMessages- array of strings, each being a regular expression search for messages to exclude
- Throws:
- IllegalArgumentException- if strings contain illegal patterns
 
- 
getIncludeLoggersgets the current array of loggers to include (all regular expressions)- Returns:
- include logger array
 
- 
setIncludeLoggerssets string array of loggers to include in query- Parameters:
- includeLoggers- array of strings, each being a regular expression search for loggers
- Throws:
- IllegalArgumentException- if strings contain illegal patterns
 
- 
getExcludeLoggersgets the current array of loggers to exclude (all regular expressions)- Returns:
- exclude logger array
 
- 
setExcludeLoggerssets string array of loggers to exclude in query- Parameters:
- excludeLoggers- array of strings, each being a regular expression search for loggers to exclude
- Throws:
- IllegalArgumentException- if strings contain illegal patterns
 
- 
compilecompiles pattern string into regular expression Pattern object.- Parameters:
- pattern- string containing WebSphere console specific pattern
- Returns:
- compiled version of the string
- Throws:
- 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)
 
- 
setThreadIDssets 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:
- IllegalArgumentException- if strings contain something other than hexadecimal values.
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-