com.ibm.websphere.logging.hpel.reader

Class LogQueryBean

  1. java.lang.Object
  2. extended bycom.ibm.websphere.logging.hpel.reader.LogQueryBean
All implemented interfaces:
java.io.Serializable

  1. public class LogQueryBean
  2. extends java.lang.Object
  3. implements java.io.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:
Serialized Form

Constructor Summary

Constructor and Description
LogQueryBean()
default constructor, allows use of the set methods

Method Summary

Modifier and Type Method and Description
  1. static
  2. java.util.regex.Pattern
compile(java.lang.String pattern)
compiles pattern string into regular expression Pattern object.
  1. boolean
equals(java.lang.Object obj)
  1. java.lang.String[]
getExcludeLoggers()
gets the current array of loggers to exclude (all regular expressions)
  1. java.lang.String[]
getIncludeLoggers()
gets the current array of loggers to include (all regular expressions)
  1. java.util.logging.Level
getMaxLevel()
gets current value of maximum level
  1. java.util.Date
getMaxTime()
gets the current value of the maximum time
  1. java.lang.String[]
getMessageContent()
gets current array of message content search strings
  1. java.util.logging.Level
getMinLevel()
gets the current value of minimum level
  1. java.util.Date
getMinTime()
gets the current value of the minimum time
  1. int[]
getThreadIDs()
gets current array of threads to search for specifically
  1. int
hashCode()
  1. void
setExcludeLoggers(java.lang.String[] excludeLoggers)
sets string array of loggers to exclude in query
  1. void
setIncludeLoggers(java.lang.String[] includeLoggers)
sets string array of loggers to include in query
  1. void
setLevels(java.util.logging.Level minLevel,java.util.logging.Level maxLevel)
sets the current value for the minimum and maximum levels
  1. void
setMessageContent(java.lang.String[] messageContent)
sets string array of message contents
  1. void
setThreadIDs(int[] threadIDs)
sets integer array of thread ids to search on
  1. void
setThreadIDs(java.lang.String[] threadIDs)
sets string array, each string representing the hex value of a thread to search on
  1. void
setTime(java.util.Date minTime,java.util.Date maxTime)
sets the current value for the minimum and maximum time
  1. java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

LogQueryBean

  1. public LogQueryBean()
default constructor, allows use of the set methods

Method Detail

getMinTime

  1. public java.util.Date getMinTime( )
gets the current value of the minimum time
Returns:
minimum time

getMaxTime

  1. public java.util.Date getMaxTime( )
gets the current value of the maximum time
Returns:
maximum time

setTime

  1. public void setTime(java.util.Date minTime,
  2. java.util.Date maxTime)
  3. throws java.lang.IllegalArgumentException
sets 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

getMinLevel

  1. public java.util.logging.Level getMinLevel( )
gets the current value of minimum level
Returns:
minimum level

getMaxLevel

  1. public java.util.logging.Level getMaxLevel( )
gets current value of maximum level
Returns:
maximum level

setLevels

  1. public void setLevels(java.util.logging.Level minLevel,
  2. java.util.logging.Level maxLevel)
  3. throws java.lang.IllegalArgumentException
sets the current value for the minimum and maximum levels
Parameters:
minLevel - minimum level
Throws:
java.lang.IllegalArgumentException - if minLevel is bigger than maxLevel

getMessageContent

  1. public java.lang.String[] getMessageContent( )
gets current array of message content search strings
Returns:
message content string (string to search message content for)

setMessageContent

  1. public void setMessageContent(java.lang.String[] messageContent)
  2. throws java.lang.IllegalArgumentException
sets 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

getIncludeLoggers

  1. public java.lang.String[] getIncludeLoggers( )
gets the current array of loggers to include (all regular expressions)
Returns:
include logger array

setIncludeLoggers

  1. public void setIncludeLoggers(java.lang.String[] includeLoggers)
  2. throws java.lang.IllegalArgumentException
sets 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

getExcludeLoggers

  1. public java.lang.String[] getExcludeLoggers( )
gets the current array of loggers to exclude (all regular expressions)
Returns:
exclude logger array

setExcludeLoggers

  1. public void setExcludeLoggers(java.lang.String[] excludeLoggers)
  2. throws java.lang.IllegalArgumentException
sets 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

compile

  1. public static java.util.regex.Pattern compile( java.lang.String pattern)
  2. throws java.lang.IllegalArgumentException
compiles 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.

getThreadIDs

  1. public int[] getThreadIDs()
gets current array of threads to search for specifically
Returns:
array of threads in search

setThreadIDs

  1. public 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)

setThreadIDs

  1. public void setThreadIDs(java.lang.String[] threadIDs)
  2. throws java.lang.IllegalArgumentException
sets 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.

hashCode

  1. public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

  1. public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object