public class ClifParser extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Pattern> |
actionAliasPatterns |
protected Map<String,ActionStatInfo> |
aggregatedStatsByAction |
protected String |
clifReportDirectory |
protected ParsingContext |
context |
protected org.ow2.clif.storage.lib.util.DateEventFilter |
dateEventFilter |
protected List<String> |
eventTypeToExclude |
protected PrintStream |
logger |
protected File |
ouputDirectory |
protected Pattern |
patternProbeName |
protected ClifReport |
report |
protected Map<String,ActionStatInfo> |
statsByAction |
protected org.ow2.clif.storage.api.StorageRead |
storageRead |
protected Map<String,Pattern> |
successfulResultPatterns |
Constructor and Description |
---|
ClifParser(String clifReportDirectory,
File ouputDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
addActionAliasPattern(String actionAlias,
String pattern) |
void |
addDateFilter(long from,
long to) |
protected void |
addError(String action) |
protected void |
addEventToAggregatedStat(String action,
long date,
int duration) |
protected void |
addEventToStat(String action,
org.ow2.clif.storage.api.BladeEvent actionEvent) |
void |
addSuccessfulResultPattern(String actionType,
String pattern) |
protected void |
analyseBlade(TestPlan testPlan,
org.ow2.clif.storage.api.BladeDescriptor bladeDescriptor) |
protected void |
analyzeEventType(Injector injector) |
protected void |
analyzeEventType(Probe probe) |
protected void |
analyzeInjector(TestPlan testPlan) |
protected void |
analyzeProbe(TestPlan testPlan) |
protected void |
analyzeTestPlan(org.ow2.clif.storage.api.BladeFilter bladeFilter) |
protected String |
buildAction(org.ow2.clif.storage.api.BladeEvent actionEvent) |
protected Injector |
createInjector(org.ow2.clif.storage.api.BladeDescriptor bladeDesc) |
protected Measure |
createInjectorMeasure(String name,
ActionStatInfo statInfo) |
protected Probe |
createProbe(org.ow2.clif.storage.api.BladeDescriptor bladeDesc) |
protected Measure |
createProbeMeasure(String name,
ActionStatInfo statInfo) |
void |
enableDataCleanup(double keepFactor,
double keepPercentage)
Enable the data cleanup functionality
|
protected String |
extractProbeSimpleName(String probeClassName) |
protected static String |
extractTestPlanName(String clifTestPlanName) |
protected String |
getAlias(String action) |
protected boolean |
isEventInError(org.ow2.clif.storage.api.BladeEvent actionEvent) |
protected boolean |
isSuccessfulResult(org.ow2.clif.storage.api.BladeEvent actionEvent) |
protected static int |
lastOrdinalIndexOf(String str,
String searchStr,
int ordinal) |
ClifReport |
parse(PrintStream logger)
Parses the specified report directory to generate a
ClifReport
for the latest test execution. |
void |
setChartConfiguration(ChartConfiguration chartConfiguration) |
void |
setGenerateCharts(boolean generateCharts) |
protected static double |
toDouble(Object value)
Convert an object to a double value.
|
protected final String clifReportDirectory
protected final File ouputDirectory
protected org.ow2.clif.storage.lib.util.DateEventFilter dateEventFilter
protected final ParsingContext context
protected ClifReport report
protected Map<String,ActionStatInfo> statsByAction
protected Map<String,ActionStatInfo> aggregatedStatsByAction
protected org.ow2.clif.storage.api.StorageRead storageRead
protected PrintStream logger
protected final Pattern patternProbeName
public void addDateFilter(long from, long to)
public void addSuccessfulResultPattern(String actionType, String pattern)
public void enableDataCleanup(double keepFactor, double keepPercentage)
keepFactor
- number of standard deviation to keep around the mean valuekeepPercentage
- percentage of value to keeppublic ClifReport parse(PrintStream logger) throws ClifParserException
ClifReport
for the latest test execution.logger
- logger to useClifParserException
- if any problem occursprotected void analyzeTestPlan(org.ow2.clif.storage.api.BladeFilter bladeFilter) throws org.ow2.clif.supervisor.api.ClifException
org.ow2.clif.supervisor.api.ClifException
protected void analyseBlade(TestPlan testPlan, org.ow2.clif.storage.api.BladeDescriptor bladeDescriptor) throws org.ow2.clif.supervisor.api.ClifException
org.ow2.clif.supervisor.api.ClifException
protected static int lastOrdinalIndexOf(String str, String searchStr, int ordinal)
protected void analyzeProbe(TestPlan testPlan) throws org.ow2.clif.supervisor.api.ClifException
org.ow2.clif.supervisor.api.ClifException
protected Probe createProbe(org.ow2.clif.storage.api.BladeDescriptor bladeDesc)
protected void analyzeInjector(TestPlan testPlan) throws org.ow2.clif.supervisor.api.ClifException
org.ow2.clif.supervisor.api.ClifException
protected Injector createInjector(org.ow2.clif.storage.api.BladeDescriptor bladeDesc)
protected void analyzeEventType(Probe probe) throws org.ow2.clif.supervisor.api.ClifException
org.ow2.clif.supervisor.api.ClifException
protected void analyzeEventType(Injector injector) throws org.ow2.clif.supervisor.api.ClifException
org.ow2.clif.supervisor.api.ClifException
protected void addError(String action)
protected void addEventToStat(String action, org.ow2.clif.storage.api.BladeEvent actionEvent)
protected void addEventToAggregatedStat(String action, long date, int duration)
protected boolean isEventInError(org.ow2.clif.storage.api.BladeEvent actionEvent)
protected boolean isSuccessfulResult(org.ow2.clif.storage.api.BladeEvent actionEvent)
protected String buildAction(org.ow2.clif.storage.api.BladeEvent actionEvent)
protected Measure createProbeMeasure(String name, ActionStatInfo statInfo)
protected Measure createInjectorMeasure(String name, ActionStatInfo statInfo)
protected static double toDouble(Object value)
Number
is directly converted. Boolean
are also converted: Boolean.TRUE = 1 and Boolean.FALSE = 0.
For other objects, the return value is 1value
- Obejct to convertpublic void setChartConfiguration(ChartConfiguration chartConfiguration)
public void setGenerateCharts(boolean generateCharts)
Copyright © 2016–2017 CLIF project. All rights reserved.