public interface Statistic
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AVERAGE
Current value merge type - returns average of all values.
|
static java.lang.String |
COUNT
Current value merge type - sums all values.
|
static java.lang.String |
MAX
Current value merge type - returns maximum of all values.
|
static java.lang.String |
MIN
Current value merge type - returns minimum of all values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
Deleted (if the statistics supports it) the information for matching sources.
|
java.lang.Number |
getCurrentValue(Source... source)
Returns the current value of the quantity.
|
java.lang.Number |
getCurrentValue(java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
Returns the current value of the quantity.
|
java.lang.String |
getGroup()
Returns the group of this statistic.
|
java.lang.String |
getMergeType()
Return the value merge type merging current type value or period infos of multiple hosts.
|
java.lang.String |
getName()
Returns the name of this statistic.
|
java.lang.String[] |
getReportTypes()
Returns the report types this statistic supports.
|
StatisticReport |
getStatisticReport(java.lang.String reportType,
Source... source)
Returns a statistic report representing the combination of all the statistics with this name and type from all the
hosts with host ids related with this statistic.
|
StatisticReport |
getStatisticReport(java.lang.String reportType,
java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
Returns a statistic report representing the combination of all the statistics with this name and type from all the
hosts with host ids related with this statistic.
|
boolean |
hasCurrentValueSupport()
Return the if current value is supported.
|
boolean |
hasInfoFromSource(java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
Tests if there is info for source matching the filter.
|
Enumerator<Source,ManagementException> |
listSources(java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
List all available sources of this statistic.
|
static final java.lang.String COUNT
static final java.lang.String MIN
static final java.lang.String MAX
static final java.lang.String AVERAGE
java.lang.String getGroup()
java.lang.String getName()
java.lang.String[] getReportTypes()
throws ManagementException
ManagementExceptionjava.lang.String getMergeType()
throws ManagementException
ManagementExceptionboolean hasCurrentValueSupport()
throws ManagementException
#getCurrentValue() shall throw
UnsupportedOperationException.ManagementExceptionEnumerator<Source,ManagementException> listSources(java.lang.String sourceTypeFilter, java.lang.String sourceNameFilter) throws ManagementException
sourceTypeFilter - optional wild card filter for the source type. Assumed "*" if nullsourceNameFilter - optional wild card filter for the source name. Assumed "*" if nullnull if this statistic do not support source, empty enumerator if the statistic has no sources and
non-empty enumerator in other casesManagementExceptionboolean hasInfoFromSource(java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
throws ManagementException
sourceTypeFilter - optional wild card filter for the source type. Assumed "*" if nullsourceNameFilter - optional wild card filter for the source name. Assumed "*" if nullnull if this statistic has information for source matching the filterManagementExceptionStatisticReport getStatisticReport(java.lang.String reportType, Source... source) throws ManagementException
reportType - the name of the report the statistic is queriedsource - source(s) of the requested statistic. It shall be null or empty array if the statistic do not support sources.ManagementExceptionStatisticReport getStatisticReport(java.lang.String reportType, java.lang.String sourceTypeFilter, java.lang.String sourceNameFilter) throws ManagementException
reportType - the name of the report the statistic is queriedsourceTypeFilter - optional wild card filter for the source type. Assumed "*" if nullsourceNameFilter - optional wild card filter for the source name. Assumed "*" if nullManagementExceptionjava.lang.Number getCurrentValue(Source... source) throws ManagementException
source - source(s) of the statistic. It must be null iff the statistic do not support sources.ManagementExceptionjava.lang.Number getCurrentValue(java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
throws ManagementException
sourceTypeFilter - optional wild card filter for the source type. Assumed "*" if nullsourceNameFilter - optional wild card filter for the source name. Assumed "*" if nullManagementExceptionvoid delete(java.lang.String sourceTypeFilter,
java.lang.String sourceNameFilter)
throws ManagementException
sourceTypeFilter - sourceNameFilter - ManagementExceptionCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.