org.ow2.clif.analyze.statistics
Class AnalyzerParameters

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

public class AnalyzerParameters
extends java.lang.Object
implements Constants

This class is designed to present the analysis parameters of the CLIF test.

Author:
Guy Vachet

Field Summary
 
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
AnalyzerParameters()
           
 
Method Summary
 java.lang.String getAnalyzePropFileName()
          input of analyze parameters
 java.lang.String getAnalyzeRangeLabel()
          in order to display time range to be analyzed
 java.util.Set<java.lang.String> getBladeIdFilter()
           
 java.util.Set<java.lang.String> getEventTypeFilter()
           
 double getInjectorStatSortFactor()
           
 double getInjectorStatSortRatio()
           
 double getProbeStatSortFactor()
           
 double getProbeStatSortRatio()
           
 java.lang.String getRegexCtrl()
           
 java.lang.String getReportPath()
           
 java.lang.String getResultFilePath()
           
 long getSliceSize()
           
 java.lang.String getTestNameFilter()
           
 long getTimeEnd()
           
 long getTimeStart()
           
 boolean isDetailedAnalysis()
           
 boolean isOutputFile()
           
 void loadParameters()
          load default analyze parameters
 void loadParameters(java.util.Properties props)
          load analyze parameters from properties
 void loadParameters(java.lang.String fileName)
          load analyze parameters from property file
 void setAnalyzePropFileName(java.lang.String analyzePropFile)
          input of analyze parameters
 void setBladeIdFilter(java.util.Set<java.lang.String> ids)
           
 void setEventTypeFilter(java.util.Set<java.lang.String> eventTypes)
           
 void setInjectorStatSortFactor(double injectorStatSortFactor)
           
 void setInjectorStatSortRatio(double injectorStatSortRatio)
           
 void setIsDetailedAnalysis(boolean detailedAnalysis)
           
 void setIsOutputFile(boolean isOutputFile)
           
 void setProbeStatSortFactor(double probeStatSortFactor)
           
 void setProbeStatSortRatio(double probeStatSortRatio)
           
 void setRegexCtrl(java.lang.String regexCtrl)
           
 void setReportPath(java.lang.String path)
           
 void setResultFilePath(java.lang.String resultFilePath)
           
 void setSliceSize(long size)
           
 void setTestNameFilter(java.lang.String id)
           
 void setTimeEnd(long time)
           
 void setTimeStart(long time)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnalyzerParameters

public AnalyzerParameters()
Method Detail

setAnalyzePropFileName

public void setAnalyzePropFileName(java.lang.String analyzePropFile)
input of analyze parameters


getAnalyzePropFileName

public java.lang.String getAnalyzePropFileName()
input of analyze parameters


setReportPath

public void setReportPath(java.lang.String path)

getReportPath

public java.lang.String getReportPath()

setTestNameFilter

public void setTestNameFilter(java.lang.String id)

getTestNameFilter

public java.lang.String getTestNameFilter()

setBladeIdFilter

public void setBladeIdFilter(java.util.Set<java.lang.String> ids)

getBladeIdFilter

public java.util.Set<java.lang.String> getBladeIdFilter()

setEventTypeFilter

public void setEventTypeFilter(java.util.Set<java.lang.String> eventTypes)

getEventTypeFilter

public java.util.Set<java.lang.String> getEventTypeFilter()

setRegexCtrl

public void setRegexCtrl(java.lang.String regexCtrl)

getRegexCtrl

public java.lang.String getRegexCtrl()

setTimeStart

public void setTimeStart(long time)

getTimeStart

public long getTimeStart()

setTimeEnd

public void setTimeEnd(long time)

getTimeEnd

public long getTimeEnd()

setInjectorStatSortFactor

public void setInjectorStatSortFactor(double injectorStatSortFactor)

getInjectorStatSortFactor

public double getInjectorStatSortFactor()

setInjectorStatSortRatio

public void setInjectorStatSortRatio(double injectorStatSortRatio)

getInjectorStatSortRatio

public double getInjectorStatSortRatio()

setProbeStatSortFactor

public void setProbeStatSortFactor(double probeStatSortFactor)

getProbeStatSortFactor

public double getProbeStatSortFactor()

setProbeStatSortRatio

public void setProbeStatSortRatio(double probeStatSortRatio)

getProbeStatSortRatio

public double getProbeStatSortRatio()

setIsDetailedAnalysis

public void setIsDetailedAnalysis(boolean detailedAnalysis)

isDetailedAnalysis

public boolean isDetailedAnalysis()

setSliceSize

public void setSliceSize(long size)

getSliceSize

public long getSliceSize()

setIsOutputFile

public void setIsOutputFile(boolean isOutputFile)

isOutputFile

public boolean isOutputFile()

setResultFilePath

public void setResultFilePath(java.lang.String resultFilePath)

getResultFilePath

public java.lang.String getResultFilePath()

loadParameters

public void loadParameters(java.util.Properties props)
                    throws java.lang.Exception
load analyze parameters from properties

Throws:
java.lang.Exception

loadParameters

public void loadParameters(java.lang.String fileName)
                    throws java.lang.Exception
load analyze parameters from property file

Throws:
java.lang.Exception

loadParameters

public void loadParameters()
                    throws java.lang.Exception
load default analyze parameters

Throws:
java.lang.Exception

getAnalyzeRangeLabel

public java.lang.String getAnalyzeRangeLabel()
in order to display time range to be analyzed


toString

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