public class ReportGeneratorConfiguration
extends java.lang.Object
Constructor and Description |
---|
ReportGeneratorConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Long[]> |
getApdexPerTransaction()
Gets the apdex per transaction map
|
static java.util.Map<java.lang.String,java.lang.Long[]> |
getApdexPerTransactionParts(java.lang.String apdexPerTransaction)
Parses a string coming from properties to fill a map containing
sample names as keys and an array of 2 longs [satisfied, tolerated] as values.
|
long |
getApdexSatisfiedThreshold()
Gets the apdex satisfied threshold.
|
long |
getApdexToleratedThreshold()
Gets the apdex tolerated threshold.
|
java.util.Date |
getEndDate() |
java.util.Map<java.lang.String,ExporterConfiguration> |
getExportConfigurations()
Gets the export configurations.
|
static java.lang.String |
getExporterPropertyKey(java.lang.String exporterId,
java.lang.String propertyName)
Gets the exporter property key from the specified identifier and property
name.
|
java.util.regex.Pattern |
getFilteredSamplesPattern() |
java.util.Map<java.lang.String,GraphConfiguration> |
getGraphConfigurations()
Gets the graph configurations.
|
static java.lang.String |
getGraphPropertyKey(java.lang.String graphId,
java.lang.String propertyName)
Gets the graph property key from the specified identifier and property
name.
|
java.lang.String |
getReportTitle() |
java.lang.String |
getSampleFilter()
Gets the overall sample filter.
|
java.util.Date |
getStartDate() |
static java.lang.String |
getSubConfigurationPropertyKey(java.lang.String keyPrefix,
java.lang.String subConfId,
java.lang.String propertyName)
Gets the sub configuration property key from the specified key
prefix, sub configuration identifier and property name.
|
static java.lang.String |
getSubConfigurationPropertyPrefix(java.lang.String keyPrefix,
java.lang.String subConfId)
Gets the sub configuration property prefix from the specified key
prefix and sub configuration identifier.
|
java.io.File |
getTempDirectory()
Gets the temporary directory.
|
boolean |
isIgnoreTCFromTop5ErrorsBySampler() |
static ReportGeneratorConfiguration |
loadFromProperties(java.util.Properties properties)
Load a configuration from the specified properties.
|
void |
setApdexPerTransaction(java.util.Map<java.lang.String,java.lang.Long[]> apdexPerTransaction)
Sets the apdex per transaction map.
|
void |
setApdexSatisfiedThreshold(long apdexSatisfiedThreshold)
Sets the apdex satisfied threshold.
|
void |
setApdexToleratedThreshold(long apdexToleratedThreshold)
Sets the apdex tolerated threshold.
|
void |
setEndDate(java.util.Date endDate) |
void |
setIgnoreTCFromTop5ErrorsBySampler(boolean ignoreTCFromTop5ErrorsBySampler) |
void |
setReportTitle(java.lang.String reportTitle) |
void |
setSampleFilter(java.lang.String sampleFilter)
Sets the overall sample filter.
|
void |
setStartDate(java.util.Date startDate) |
void |
setTempDirectory(java.io.File tempDirectory)
Sets the temporary directory.
|
public static final char KEY_DELIMITER
public static final java.lang.String REPORT_GENERATOR_KEY_PREFIX
public static final java.lang.String REPORT_GENERATOR_KEY_RANGE_DATE_FORMAT
public static final java.lang.String REPORT_GENERATOR_GRAPH_KEY_PREFIX
public static final java.lang.String REPORT_GENERATOR_EXPORTER_KEY_PREFIX
public static final java.lang.String REPORT_GENERATOR_KEY_TEMP_DIR
public static final java.lang.String GRAPH_KEY_EXCLUDE_CONTROLLERS
public static final java.lang.Boolean GRAPH_KEY_EXCLUDE_CONTROLLERS_DEFAULT
public static final java.lang.String GRAPH_KEY_TITLE
public static final java.lang.String GRAPH_KEY_TITLE_DEFAULT
public static final java.lang.String EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES
public static final java.lang.Boolean EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES_DEFAULT
public static final java.lang.String EXPORTER_KEY_SERIES_FILTER
public static final java.lang.String EXPORTER_KEY_SERIES_FILTER_DEFAULT
public static final java.lang.String EXPORTER_KEY_SHOW_CONTROLLERS_ONLY
public static final java.lang.Boolean EXPORTER_KEY_SHOW_CONTROLLERS_ONLY_DEFAULT
public static final java.lang.String EXPORTER_KEY_GRAPH_EXTRA_OPTIONS
public static final java.lang.String SUBCONF_KEY_CLASSNAME
public static final java.lang.String SUBCONF_KEY_PROPERTY
public final java.lang.String getSampleFilter()
public final void setSampleFilter(java.lang.String sampleFilter)
sampleFilter
- the new overall sample filterpublic final java.io.File getTempDirectory()
public final void setTempDirectory(java.io.File tempDirectory)
tempDirectory
- the temporary directory to setpublic final long getApdexSatisfiedThreshold()
public final void setApdexSatisfiedThreshold(long apdexSatisfiedThreshold)
apdexSatisfiedThreshold
- the apdex satisfied threshold to setpublic final long getApdexToleratedThreshold()
public final void setApdexToleratedThreshold(long apdexToleratedThreshold)
apdexToleratedThreshold
- the apdex tolerated threshold to setpublic java.util.Map<java.lang.String,java.lang.Long[]> getApdexPerTransaction()
public void setApdexPerTransaction(java.util.Map<java.lang.String,java.lang.Long[]> apdexPerTransaction)
apdexPerTransaction
- a map containing thresholds for one or more samplespublic final java.util.Map<java.lang.String,ExporterConfiguration> getExportConfigurations()
public final java.util.Map<java.lang.String,GraphConfiguration> getGraphConfigurations()
public static java.lang.String getSubConfigurationPropertyPrefix(java.lang.String keyPrefix, java.lang.String subConfId)
keyPrefix
- the key prefixsubConfId
- the sub configuration identifierpublic static java.lang.String getSubConfigurationPropertyKey(java.lang.String keyPrefix, java.lang.String subConfId, java.lang.String propertyName)
keyPrefix
- the key prefixsubConfId
- the sub configuration identifierpropertyName
- the property namepublic static java.lang.String getExporterPropertyKey(java.lang.String exporterId, java.lang.String propertyName)
exporterId
- the exporter identifierpropertyName
- the property namepublic static java.lang.String getGraphPropertyKey(java.lang.String graphId, java.lang.String propertyName)
graphId
- the graph identifierpropertyName
- the property namepublic static ReportGeneratorConfiguration loadFromProperties(java.util.Properties properties) throws ConfigurationException
properties
- the propertiesConfigurationException
- when mandatory properties are missingpublic static java.util.Map<java.lang.String,java.lang.Long[]> getApdexPerTransactionParts(java.lang.String apdexPerTransaction)
apdexPerTransaction
- the string coming from propertiesMap
containing for each sample name or sample name regex an array of Long corresponding to satisfied and tolerated apdex thresholds.public java.lang.String getReportTitle()
public void setReportTitle(java.lang.String reportTitle)
reportTitle
- the reportTitle to setpublic java.util.regex.Pattern getFilteredSamplesPattern()
public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- the start date to use to generate the reportpublic java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
endDate
- the end date to use to generate the reportpublic boolean isIgnoreTCFromTop5ErrorsBySampler()
public void setIgnoreTCFromTop5ErrorsBySampler(boolean ignoreTCFromTop5ErrorsBySampler)
ignoreTCFromTop5ErrorsBySampler
- the ignoreTCFromTop5ErrorsBySampler to setCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.