public interface HistoryConfiguration
| Modifier and Type | Field and Description |
|---|---|
static long |
DAY
Constant for a day in milliseconds
|
static long |
DEFAULT_FREQUENCY_PERIOD
Constant for default frequency period (an hour)
|
static int |
DEFAULT_MAX_NUMBER_OF_RESULTS
Constant for default max number of results (500)
|
static long |
DEFAULT_PERIOD_LENGTH
Constant for default period length (a day)
|
static long |
HOUR
Constant for a hour in milliseconds
|
static int |
MAX_MAX_NUMBER_OF_RESULTS
Constant for maximum max number of results (1000000)
|
static long |
MAX_PERIOD_LENGTH
Constant for maximum period length (a month)
|
static long |
MIN_FREQUENCY_PERIOD
Constant for minimum frequency period (a second)
|
static int |
MIN_MAX_NUMBER_OF_RESULTS
Constant for minimum max number of results (1)
|
static long |
MIN_PERIOD_LENGTH
Constant for minimum period length (a minute)
|
static long |
MINUTE
Constant for a minute in milliseconds
|
static long |
MONTH
Constant for a month (30 days) in milliseconds
|
static long |
SECOND
Constant for a second in milliseconds
|
| Modifier and Type | Method and Description |
|---|---|
long |
getFrequencyPeriod()
Get the frequency period.
|
int |
getMaxEntries()
Get the max entries configuration
|
long[] |
getPeriod()
Get the period for which values are to be retrieved.
|
long |
getPeriodLength()
Get the configured period length for which entries are to be kept in DB.
|
void |
setFrequencyPeriod(long frequencyPeriod)
Set the frequency period
|
void |
setMaxEntries(int number)
Set the max entries configuration
|
void |
setPeriod(long startTime,
long endTime)
Set the period for which values are to be retrieved.
|
void |
setPeriodLength(long periodLength)
Set the configured period length for which entries are to be kept in DB.
|
static final long SECOND
static final long MINUTE
static final long HOUR
static final long DAY
static final long MONTH
static final int DEFAULT_MAX_NUMBER_OF_RESULTS
static final int MIN_MAX_NUMBER_OF_RESULTS
static final int MAX_MAX_NUMBER_OF_RESULTS
static final long DEFAULT_PERIOD_LENGTH
static final long MIN_PERIOD_LENGTH
static final long MAX_PERIOD_LENGTH
static final long DEFAULT_FREQUENCY_PERIOD
static final long MIN_FREQUENCY_PERIOD
int getMaxEntries()
void setMaxEntries(int number)
number - the new max entries valuelong[] getPeriod()
void setPeriod(long startTime,
long endTime)
startTime - the period startendTime - the period endlong getPeriodLength()
void setPeriodLength(long periodLength)
periodLength - the new period lengthlong getFrequencyPeriod()
void setFrequencyPeriod(long frequencyPeriod)
frequencyPeriod - the new frequency periodCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.