public interface StatisticProvider
| Modifier and Type | Field and Description |
|---|---|
static int[][] |
DEFAULT_PRECISION_INFO |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Number |
getCurrentValue(Source source)
Exported as current report if supported.
|
java.lang.String |
getDB()
Returns the DB name that shall be used for storing the information for values of this statistic.
|
java.lang.String |
getGroup()
Returns statistic group.
|
java.lang.String |
getMergeType()
Returns a ReportProvider name that could be used for merging current values on more then one hosts.
|
java.lang.String |
getName()
Returns statistic name.
|
int[][] |
getPrecisionInfo()
In order to save memory/disk the statistic provider keeps the statistics records in samples (period infos) with different precisions.
|
java.lang.String[] |
getReportTypes()
Return the handler for report support.
|
java.lang.String[] |
getSummaryNames()
Returns names of predefined (summary) statistic values.
|
boolean |
hasCurrentValueSupport()
Return the if current value is supported.
|
void |
setUp(Context context)
Sets up the provider.
|
java.lang.String getGroup()
java.lang.String getName()
java.lang.String[] getReportTypes()
boolean hasCurrentValueSupport()
#getCurrentValue() shall throw
UnsupportedOperationException.ManagementExceptionint[][] getPrecisionInfo()
null the default one for the statistics
subsystem is used.java.lang.String getDB()
void setUp(Context context)
null) context.
When the passed context is null the provider MUST stop use the previously set context.java.lang.String getMergeType()
java.lang.Number getCurrentValue(Source source) throws java.lang.UnsupportedOperationException
source - source of the statistic.java.lang.UnsupportedOperationExceptionjava.lang.String[] getSummaryNames()
throws ManagementException
ManagementExceptionCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.