com.mindtree.techworks.insight.eventsearch
Class SearchCriteria

java.lang.Object
  extended by com.mindtree.techworks.insight.eventsearch.SearchCriteria
All Implemented Interfaces:
java.io.Serializable

public class SearchCriteria
extends java.lang.Object
implements java.io.Serializable

This is the value object to pass the Search Criteria for the Event Search in Insight.

Version:
$Revision: 27 $ $Date: 2007-12-16 04:58:03 -0700 (Sun, 16 Dec 2007) $
Author:
Bindul Bhowmik
See Also:
Serialized Form

Field Summary
static int ALL_FIELDS_SEARCH
          Indicates to search in all fields
static int CATEGORY_SEARCH
          Indicates to search inthe Category field
static int EXCEPTION_CLASS_NAME_SEARCH
          Indicates to search for the exception class name.
static int MESSAGE_SEARCH
          Indicates to search in the Log message
static int NAMESPACE_SEARCH
          Indicates to search for the log namespace.Note that this field is not available for selection in the search GUI
static int PRIORITY_SEARCH
          Indicates to search for the priority.
static int THREAD_SEARCH
          Indicates to search in the thread field
static int THROWABLE_SEARCH
          Indicates to search for the throwable stack trace.
 
Constructor Summary
SearchCriteria(int searchType)
          Constructor for a search criteria.
 
Method Summary
 java.lang.String getSearchString()
           
 int getSearchType()
          Returns the search type.
 void setSearchString(java.lang.String searchString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THREAD_SEARCH

public static final int THREAD_SEARCH
Indicates to search in the thread field

See Also:
Constant Field Values

CATEGORY_SEARCH

public static final int CATEGORY_SEARCH
Indicates to search inthe Category field

See Also:
Constant Field Values

MESSAGE_SEARCH

public static final int MESSAGE_SEARCH
Indicates to search in the Log message

See Also:
Constant Field Values

EXCEPTION_CLASS_NAME_SEARCH

public static final int EXCEPTION_CLASS_NAME_SEARCH
Indicates to search for the exception class name.

See Also:
Constant Field Values

THROWABLE_SEARCH

public static final int THROWABLE_SEARCH
Indicates to search for the throwable stack trace.

See Also:
Constant Field Values

PRIORITY_SEARCH

public static final int PRIORITY_SEARCH
Indicates to search for the priority. Note that this field is not available for selection in the search GUI

See Also:
Constant Field Values

NAMESPACE_SEARCH

public static final int NAMESPACE_SEARCH
Indicates to search for the log namespace.Note that this field is not available for selection in the search GUI

See Also:
Constant Field Values

ALL_FIELDS_SEARCH

public static final int ALL_FIELDS_SEARCH
Indicates to search in all fields

See Also:
Constant Field Values
Constructor Detail

SearchCriteria

public SearchCriteria(int searchType)
Constructor for a search criteria.

Parameters:
searchType - The type of this search. The search type should be provided as an OR of the different search criteria types. For example, to search on both message and thread, provide the search type as MESSAGE_SEARCH | THREAD_SEARCH. To search in all fields use the ALL_FIELDS_SEARCH type.
Method Detail

getSearchString

public java.lang.String getSearchString()
Returns:
Returns the searchString.

setSearchString

public void setSearchString(java.lang.String searchString)
Parameters:
searchString - The searchString to set.

getSearchType

public int getSearchType()
Returns the search type.

Returns:
The search type for the current search criteria.


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.