Class ReportGeneratorConfiguration
-
- All Implemented Interfaces:
public class ReportGeneratorConfiguration
The class ReportGeneratorConfiguration describes the configuration of the report generator.
- Since:
3.0
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ReportGeneratorConfiguration()
-
Method Summary
Modifier and Type Method Description String
getReportTitle()
void
setReportTitle(String reportTitle)
Date
getStartDate()
void
setStartDate(Date startDate)
Date
getEndDate()
void
setEndDate(Date endDate)
final String
getSampleFilter()
Gets the overall sample filter. final void
setSampleFilter(String sampleFilter)
Sets the overall sample filter. final File
getTempDirectory()
Gets the temporary directory. final void
setTempDirectory(File tempDirectory)
Sets the temporary directory. final long
getApdexSatisfiedThreshold()
Gets the apdex satisfied threshold. final void
setApdexSatisfiedThreshold(long apdexSatisfiedThreshold)
Sets the apdex satisfied threshold. final long
getApdexToleratedThreshold()
Gets the apdex tolerated threshold. final void
setApdexToleratedThreshold(long apdexToleratedThreshold)
Sets the apdex tolerated threshold. Map<String, Array<Long>>
getApdexPerTransaction()
Gets the apdex per transaction map void
setApdexPerTransaction(Map<String, Array<Long>> apdexPerTransaction)
Sets the apdex per transaction map. Pattern
getFilteredSamplesPattern()
final Map<String, ExporterConfiguration>
getExportConfigurations()
Gets the export configurations. final Map<String, GraphConfiguration>
getGraphConfigurations()
Gets the graph configurations. static String
getSubConfigurationPropertyPrefix(String keyPrefix, String subConfId)
Gets the sub configuration property prefix from the specified key prefix and sub configuration identifier. static String
getSubConfigurationPropertyKey(String keyPrefix, String subConfId, String propertyName)
Gets the sub configuration property key from the specified key prefix, sub configuration identifier and property name. static String
getExporterPropertyKey(String exporterId, String propertyName)
Gets the exporter property key from the specified identifier and property name. static String
getGraphPropertyKey(String graphId, String propertyName)
Gets the graph property key from the specified identifier and property name. static ReportGeneratorConfiguration
loadFromProperties(Properties properties)
Load a configuration from the specified properties. static Map<String, Array<Long>>
getApdexPerTransactionParts(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. boolean
isIgnoreTCFromTop5ErrorsBySampler()
void
setIgnoreTCFromTop5ErrorsBySampler(boolean ignoreTCFromTop5ErrorsBySampler)
-
-
Method Detail
-
getReportTitle
String getReportTitle()
- Returns:
the reportTitle
-
setReportTitle
void setReportTitle(String reportTitle)
- Parameters:
reportTitle
- the reportTitle to set
-
getStartDate
Date getStartDate()
- Returns:
the start date to use to generate the report
-
setStartDate
void setStartDate(Date startDate)
- Parameters:
startDate
- the start date to use to generate the report
-
getEndDate
Date getEndDate()
- Returns:
the end date to use to generate the report
-
setEndDate
void setEndDate(Date endDate)
- Parameters:
endDate
- the end date to use to generate the report
-
getSampleFilter
final String getSampleFilter()
Gets the overall sample filter.
- Returns:
the overall sample filter
-
setSampleFilter
final void setSampleFilter(String sampleFilter)
Sets the overall sample filter.
- Parameters:
sampleFilter
- the new overall sample filter
-
getTempDirectory
final File getTempDirectory()
Gets the temporary directory.
- Returns:
the temporary directory
-
setTempDirectory
final void setTempDirectory(File tempDirectory)
Sets the temporary directory.
- Parameters:
tempDirectory
- the temporary directory to set
-
getApdexSatisfiedThreshold
final long getApdexSatisfiedThreshold()
Gets the apdex satisfied threshold.
- Returns:
the apdex satisfied threshold
-
setApdexSatisfiedThreshold
final void setApdexSatisfiedThreshold(long apdexSatisfiedThreshold)
Sets the apdex satisfied threshold.
- Parameters:
apdexSatisfiedThreshold
- the apdex satisfied threshold to set
-
getApdexToleratedThreshold
final long getApdexToleratedThreshold()
Gets the apdex tolerated threshold.
- Returns:
the apdex tolerated threshold
-
setApdexToleratedThreshold
final void setApdexToleratedThreshold(long apdexToleratedThreshold)
Sets the apdex tolerated threshold.
- Parameters:
apdexToleratedThreshold
- the apdex tolerated threshold to set
-
getApdexPerTransaction
Map<String, Array<Long>> getApdexPerTransaction()
Gets the apdex per transaction map
- Returns:
the apdex per transaction map
-
setApdexPerTransaction
void setApdexPerTransaction(Map<String, Array<Long>> apdexPerTransaction)
Sets the apdex per transaction map.
- Parameters:
apdexPerTransaction
- a map containing thresholds for one or more samples
-
getFilteredSamplesPattern
Pattern getFilteredSamplesPattern()
- Returns:
the filteredSamplesPattern
-
getExportConfigurations
final Map<String, ExporterConfiguration> getExportConfigurations()
Gets the export configurations.
- Returns:
the export configurations
-
getGraphConfigurations
final Map<String, GraphConfiguration> getGraphConfigurations()
Gets the graph configurations.
- Returns:
the graph configurations
-
getSubConfigurationPropertyPrefix
static String getSubConfigurationPropertyPrefix(String keyPrefix, String subConfId)
Gets the sub configuration property prefix from the specified key prefix and sub configuration identifier.
- Parameters:
keyPrefix
- the key prefixsubConfId
- the sub configuration identifier- Returns:
the sub configuration property prefix
-
getSubConfigurationPropertyKey
static String getSubConfigurationPropertyKey(String keyPrefix, String subConfId, String propertyName)
Gets the sub configuration property key from the specified key prefix, sub configuration identifier and property name.
- Parameters:
keyPrefix
- the key prefixsubConfId
- the sub configuration identifierpropertyName
- the property name- Returns:
the sub configuration property key
-
getExporterPropertyKey
static String getExporterPropertyKey(String exporterId, String propertyName)
Gets the exporter property key from the specified identifier and property name.
- Parameters:
exporterId
- the exporter identifierpropertyName
- the property name- Returns:
the exporter property key
-
getGraphPropertyKey
static String getGraphPropertyKey(String graphId, String propertyName)
Gets the graph property key from the specified identifier and property name.
- Parameters:
graphId
- the graph identifierpropertyName
- the property name- Returns:
the graph property key
-
loadFromProperties
static ReportGeneratorConfiguration loadFromProperties(Properties properties)
Load a configuration from the specified properties.
- Parameters:
properties
- the properties- Returns:
the report generator configuration
-
getApdexPerTransactionParts
static Map<String, Array<Long>> getApdexPerTransactionParts(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. The sample name can be a regex supplied by the user.
- Parameters:
apdexPerTransaction
- the string coming from properties- Returns:
Map containing for each sample name or sample name regex an array of Long corresponding to satisfied and tolerated apdex thresholds.
-
isIgnoreTCFromTop5ErrorsBySampler
boolean isIgnoreTCFromTop5ErrorsBySampler()
- Returns:
the ignoreTCFromTop5ErrorsBySampler
-
setIgnoreTCFromTop5ErrorsBySampler
void setIgnoreTCFromTop5ErrorsBySampler(boolean ignoreTCFromTop5ErrorsBySampler)
- Parameters:
ignoreTCFromTop5ErrorsBySampler
- the ignoreTCFromTop5ErrorsBySampler to set
-
-
-
-