Dashboard Builder Commons 6.2.0.CR4

org.jboss.dashboard.profiler
Class ThreadProfileFilter

java.lang.Object
  extended by org.jboss.dashboard.commons.filter.AbstractFilter
      extended by org.jboss.dashboard.profiler.ThreadProfileFilter
All Implemented Interfaces:
Cloneable, Filter, FilterByCriteria

public class ThreadProfileFilter
extends AbstractFilter

Class used by the Profiler to get the list of thread to show. It filters using as criteria the global context variables of the ThreadProfile instances.


Field Summary
static SimpleDateFormat _dateComparisonFormat
          Date format for comparison in filter.
 
Fields inherited from class org.jboss.dashboard.commons.filter.AbstractFilter
_bshIntepreterThread, _filterVarValues, filterCondition, filterProperties, gt, gtOrEq, locale, lt, ltOrEq, wildcard
 
Fields inherited from interface org.jboss.dashboard.commons.filter.FilterByCriteria
ALLOW_ALL, ALLOW_ANY, ALLOW_NONE
 
Constructor Summary
ThreadProfileFilter()
           
 
Method Summary
protected  String formatForComparison(String propertyId, Object value)
          Format a given property value valid for string comparfison against other values.
protected  String formatForDisplay(String propertyId, Object value)
          Format a given property value as displayed for the the user.
protected  Object getPropertyValue(String propertyId, Object obj)
          Retrieve the value for a given property.
 
Methods inherited from class org.jboss.dashboard.commons.filter.AbstractFilter
addProperties, addProperty, addProperty, cloneFilter, compare, compareBySimilarity, containsProperty, containsProperty, equals, executeBeanShellScript, getExtraInfo, getFilterCondition, getGt, getGtOrEq, getLocale, getLt, getLtOrEq, getProperty, getPropertyAllowedValues, getPropertyAllowMode, getPropertyIds, getPropertyMaxValue, getPropertyMinValue, getPropertyPriority, getVariableName, getWildcard, maxValueIncluded, minValueIncluded, pass, pass, pass, pass, passValue, removeAllProperty, removeProperties, removeProperty, setExtraInfo, setFilterCondition, setGt, setGtOrEq, setLocale, setLt, setLtOrEq, setVariableName, setWildcard, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_dateComparisonFormat

public static final SimpleDateFormat _dateComparisonFormat
Date format for comparison in filter.

Constructor Detail

ThreadProfileFilter

public ThreadProfileFilter()
Method Detail

formatForDisplay

protected String formatForDisplay(String propertyId,
                                  Object value)
Description copied from class: AbstractFilter
Format a given property value as displayed for the the user.

Specified by:
formatForDisplay in class AbstractFilter
Parameters:
propertyId - The property identifier.
value - The value to format.

formatForComparison

protected String formatForComparison(String propertyId,
                                     Object value)
Description copied from class: AbstractFilter
Format a given property value valid for string comparfison against other values.

Specified by:
formatForComparison in class AbstractFilter
Parameters:
propertyId - The property identifier.
value - The value to format.

getPropertyValue

protected Object getPropertyValue(String propertyId,
                                  Object obj)
Description copied from class: AbstractFilter
Retrieve the value for a given property.

Specified by:
getPropertyValue in class AbstractFilter
Parameters:
propertyId - The property to search value for.
obj - The object instance to ask for.
Returns:
The value.

Dashboard Builder Commons 6.2.0.CR4

Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.