org.ow2.clif.analyze.statistics
Class InjectorAnalyst

java.lang.Object
  extended by org.ow2.clif.analyze.statistics.AbstractAnalyst
      extended by org.ow2.clif.analyze.statistics.InjectorAnalyst
All Implemented Interfaces:
Constants

public class InjectorAnalyst
extends AbstractAnalyst

Analyze one or more CLIF injectors: first of all, agglomerate action blades ; check success of any action ; compute data in order to get statistical stuff

Author:
Guy Vachet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ow2.clif.analyze.statistics.AbstractAnalyst
AbstractAnalyst.ProfilingStatistics
 
Field Summary
static java.lang.String CTRL_FIELD
           
static java.lang.String FIELD_LABEL
           
static java.lang.String RESULT_FIELD
           
static java.lang.String TYPE_LABEL
           
 
Fields inherited from interface org.ow2.clif.analyze.statistics.Constants
ACTION_EVENT_CLASS, ACTION_EVENT_TYPE_LABEL, ALARM_EVENT_CLASS, ALARM_EVENT_TYPE_LABEL, BLADE_STATE_COMPLETED_CODE, BLADE_STATE_INITIALIZED_CODE, BLADE_STATE_RUNNING_CODE, BLADE_STATE_STARTING_CODE, BLADE_STATE_STOPPING_CODE, BUFFERED_EVENT_FIELD_LABEL, CACHED_EVENT_FIELD_LABEL, COMMENT_PREFIX, CPU_EVENT_CLASS, CPU_EVENT_FIELD_LABEL, CPU_EVENT_TYPE_LABEL, DATA_POWER_SNMP_EVENT_CLASS, DATA_POWER_SNMP_EVENT_FIELD_LABEL, DEFAULT_ANALYZE_PROPERTY_FILE, DEFAULT_IS_DETAILED_ANALYSIS, DEFAULT_IS_OUTPUT_FILE, DEFAULT_MAX_TIME, DEFAULT_MIN_TIME, DEFAULT_REGEX_CTRL_ACTION, DEFAULT_REPORT_PATH, DEFAULT_RESULT_PATH, DEFAULT_SLICE_SIZE, DEFAULT_STATISTICAL_SORT_FACTOR, DEFAULT_STATISTICAL_SORT_RATIO, DEFAULT_TIME_RANGE_END, DEFAULT_TIME_RANGE_START, DURATION_EVENT_FIELD_LABEL, FREE_MEMORY_EVENT_FIELD_LABEL, FREE_USABLE_MEMORY_EVENT_FIELD_LABEL, GC_ARGUMENT, INJECTOR_FREQUENCY_CLASS_NUMBER, INJECTOR_QUANTILE_CLASS_NUMBER, JVM_EVENT_CLASS, JVM_EVENT_TYPE_LABEL, KERNEL_CPU_EVENT_FIELD_LABEL, LIFECYCLE_EVENT_CLASS, LIFECYCLE_EVENT_TYPE_LABEL, MEMORY_EVENT_CLASS, MEMORY_EVENT_TYPE_LABEL, NETWORK_EVENT_CLASS, NETWORK_EVENT_TYPE_LABEL, PROBE_FREQUENCY_CLASS_NUMBER, RESULT_EVENT_FIELD_LABEL, SUCCESS_EVENT_FIELD_LABEL, USED_MEMORY_EVENT_FIELD_LABEL, USED_RAM_EVENT_FIELD_LABEL, USED_SWAP_EVENT_FIELD_LABEL, USER_CPU_EVENT_FIELD_LABEL
 
Constructor Summary
InjectorAnalyst()
          default constructor
InjectorAnalyst(java.lang.String analyzeRange)
           
 
Method Summary
 void addProfilingData(BladeStoreReader reader, EventFilter filter)
           
 void checkProfilingData(AbstractAnalyst.ProfilingStatistics profilingStat)
          keep data that has not raised an CLIF error during load injection
 AbstractAnalyst.ProfilingStatistics flattenProfilingStatistics()
          join profiling data from several CLIF injectors
 java.lang.String getRegexCtrl()
           
 void outputAnalysis(boolean isDetailed, long sliceSize)
           
 void outputHistoryOfActionResults(AbstractAnalyst.ProfilingStatistics profStat, LongStatistics durations, long sliceSize)
           
 void setRegexCtrl(java.lang.String regexCtrl)
           
 
Methods inherited from class org.ow2.clif.analyze.statistics.AbstractAnalyst
addBladeData, getBladeIdentifiers, getLabel, getProfilingStatistics, getStatSortFactor, getStatSortRatio, isEmpty, removeBladeData, setLabel, setStatSortFactor, setStatSortRatio
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_LABEL

public static final java.lang.String TYPE_LABEL
See Also:
Constant Field Values

FIELD_LABEL

public static final java.lang.String FIELD_LABEL
See Also:
Constant Field Values

CTRL_FIELD

public static final java.lang.String CTRL_FIELD
See Also:
Constant Field Values

RESULT_FIELD

public static final java.lang.String RESULT_FIELD
See Also:
Constant Field Values
Constructor Detail

InjectorAnalyst

public InjectorAnalyst()
default constructor


InjectorAnalyst

public InjectorAnalyst(java.lang.String analyzeRange)
Method Detail

addProfilingData

public void addProfilingData(BladeStoreReader reader,
                             EventFilter filter)
                      throws ClifException
Specified by:
addProfilingData in class AbstractAnalyst
Throws:
ClifException

setRegexCtrl

public void setRegexCtrl(java.lang.String regexCtrl)

getRegexCtrl

public java.lang.String getRegexCtrl()

flattenProfilingStatistics

public AbstractAnalyst.ProfilingStatistics flattenProfilingStatistics()
join profiling data from several CLIF injectors

Returns:
flattened data sorted by date

checkProfilingData

public void checkProfilingData(AbstractAnalyst.ProfilingStatistics profilingStat)
keep data that has not raised an CLIF error during load injection


outputHistoryOfActionResults

public void outputHistoryOfActionResults(AbstractAnalyst.ProfilingStatistics profStat,
                                         LongStatistics durations,
                                         long sliceSize)

outputAnalysis

public void outputAnalysis(boolean isDetailed,
                           long sliceSize)
Specified by:
outputAnalysis in class AbstractAnalyst
Parameters:
isDetailed - if true display more analysis
sliceSize - size of elapsed time in order to analyze sub-population