public class HistoryConfiguration
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
long |
DAY
Constant for a day in milliseconds
|
long |
HOUR
Constant for a hour in milliseconds
|
long |
MINUTE
Constant for a minute in milliseconds
|
long |
MONTH
Constant for a month (30 days) in milliseconds
|
long |
SECOND
Constant for a second in milliseconds
|
| Constructor and Description |
|---|
HistoryConfiguration()
Constructs a history configuration.
|
| 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.
|
public long SECOND
public long MINUTE
public long HOUR
public long DAY
public long MONTH
public HistoryConfiguration()
public int getMaxEntries()
public void setMaxEntries(int number)
number - the new max entries valuepublic long[] getPeriod()
public void setPeriod(long startTime,
long endTime)
startTime - the period startendTime - the period endpublic long getPeriodLength()
public void setPeriodLength(long periodLength)
periodLength - the new period lengthpublic long getFrequencyPeriod()
public void setFrequencyPeriod(long frequencyPeriod)
frequencyPeriod - the new frequency periodCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.