public final class IndicatorReport extends Object
Indicator's outcomes.| Constructor and Description |
|---|
IndicatorReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkedRecord(int sequence,
LinkedRecord linkedRecord)
Adds linked records by a sequence.
|
void |
addValue(IndicatorValue indicatorValue)
Adds an
IndicatorValue. |
void |
addValues(List<IndicatorValue> indicatorValues)
Adds several
IndicatorValue. |
Date |
getExecutionDate()
Returns the time when executing indicator.
|
String |
getIndicatorDefinitionClass()
Deprecated.
|
String |
getIndicatorDefinitionCode()
Returns the unique code of an
IndicatorDefinition. |
List<IndicatorValue> |
getIndicatorValues()
Returns the list of
IndicatorValue, the atomic outcomes after executing Indicator. |
Iterator<Map.Entry<Integer,LinkedRecord>> |
getLinkedRecords()
Returns the linked records mapped by sequences.
|
com.onwbp.adaptation.PrimaryKey |
getPrimaryKeyOfPreviousBigDataBySequence(int sequence)
Deprecated.
|
com.onwbp.adaptation.PrimaryKey |
getPrimaryKeyOfPreviousIndicatorReport()
Returns the primary key of the last corresponding record in the
Indicator report table if IndicatorDefinitionContext.saveLastValueOnlyOnReportingTable() returns true. |
com.onwbp.adaptation.PrimaryKey |
getPrimaryKeyOfPreviousReportingRecordBySequence(int sequence)
Returns the primary key of the last corresponding record in either the
Big data or Flat data table depending on the IndicatorDefinition if IndicatorDefinitionContext.saveLastValueOnlyOnBigDataTable() is true. |
com.onwbp.adaptation.PrimaryKey |
getPrimaryKeysOfPreviousIndicatorValuesBySequenceAndOrder(int sequence,
int order)
Returns the primary key of the last corresponding record in the
Indicator value table if IndicatorDefinitionContext.saveLastValueOnlyOnReportingTable() returns true. |
boolean |
isAlertRaisedByWatchdog()
|
boolean |
isAutomatic()
Returns
true if the indicator runs on probe (trigger). |
boolean |
noLinkedRecord()
Returns
true if there aren't any linked records. |
void |
setAlertRaisedByWatchdog(boolean alertRaisedByWatchdog) |
void |
setPrimaryKeyOfPreviousBigDataReportBySequence(int sequence,
com.onwbp.adaptation.PrimaryKey primaryKeyOfPreviousBigDataReport)
Deprecated.
|
void |
setPrimaryKeyOfPreviousIndicatorReport(com.onwbp.adaptation.PrimaryKey primaryKeyOfPreviousIndicatorReport)
Defines the primary key of the previous indicator report, used for updates.
|
void |
setPrimaryKeyOfPreviousReportingRecordBySequence(int sequence,
com.onwbp.adaptation.PrimaryKey primaryKey)
Defines the primary key of the previous record in either the
Big data or Flat data table depending on the IndicatorDefinition, used for updates. |
void |
setPrimaryKeysOfPreviousIndicatorValuesBySequenceAndOrder(int sequence,
Map<Integer,com.onwbp.adaptation.PrimaryKey> primaryKeysByOrder)
Defines the primary keys of previous indicator values, used for updates.
|
public void addValue(IndicatorValue indicatorValue)
IndicatorValue.public void addValues(List<IndicatorValue> indicatorValues)
IndicatorValue.public Date getExecutionDate()
public String getIndicatorDefinitionCode()
IndicatorDefinition.public String getIndicatorDefinitionClass()
IndicatorDefinition.
Since v1.5.2, a definition class can be shared between multiple instances of IndicatorDefinition. The unique code is used to identify an indicator definition instead.
getIndicatorDefinitionCode()public List<IndicatorValue> getIndicatorValues()
IndicatorValue, the atomic outcomes after executing Indicator.public boolean isAlertRaisedByWatchdog()
Returns true if Watchdog is considered as an alert to save IndicatorReport.
It is applied only on indicators which have WatchdogInformation.
public boolean isAutomatic()
true if the indicator runs on probe (trigger).public void setAlertRaisedByWatchdog(boolean alertRaisedByWatchdog)
alertRaisedByWatchdog - booleanisAlertRaisedByWatchdog()public com.onwbp.adaptation.PrimaryKey getPrimaryKeyOfPreviousIndicatorReport()
Returns the primary key of the last corresponding record in the Indicator report table if IndicatorDefinitionContext.saveLastValueOnlyOnReportingTable() returns true.
Otherwise, it returns null.
public void setPrimaryKeyOfPreviousIndicatorReport(com.onwbp.adaptation.PrimaryKey primaryKeyOfPreviousIndicatorReport)
public com.onwbp.adaptation.PrimaryKey getPrimaryKeysOfPreviousIndicatorValuesBySequenceAndOrder(int sequence,
int order)
Returns the primary key of the last corresponding record in the Indicator value table if IndicatorDefinitionContext.saveLastValueOnlyOnReportingTable() returns true.
Otherwise, returns null.
The received primary key is based on IndicatorValue.getSequence() and IndicatorValue.getOrder().
sequence - integerorder - integerpublic void setPrimaryKeysOfPreviousIndicatorValuesBySequenceAndOrder(int sequence,
Map<Integer,com.onwbp.adaptation.PrimaryKey> primaryKeysByOrder)
public com.onwbp.adaptation.PrimaryKey getPrimaryKeyOfPreviousBigDataBySequence(int sequence)
Returns the primary key of the last corresponding record in Big data table if IndicatorDefinitionContext.saveLastValueOnlyOnBigDataTable() returns true.
Otherwise, it returns null.
The received primary key is based on IndicatorValue.getSequence().
Since 2.0.0, use getPrimaryKeyOfPreviousReportingRecordBySequence(int) instead.
sequence - integerpublic void setPrimaryKeyOfPreviousBigDataReportBySequence(int sequence,
com.onwbp.adaptation.PrimaryKey primaryKeyOfPreviousBigDataReport)
Defines the primary key of the previous record in the Big data table.
Since 2.0.0, use setPrimaryKeyOfPreviousReportingRecordBySequence(int, PrimaryKey) instead.
public com.onwbp.adaptation.PrimaryKey getPrimaryKeyOfPreviousReportingRecordBySequence(int sequence)
Returns the primary key of the last corresponding record in either the Big data or Flat data table depending on the IndicatorDefinition if IndicatorDefinitionContext.saveLastValueOnlyOnBigDataTable() is true.
Otherwise, it returns null.
The received primary key is based on IndicatorValue.getSequence().
sequence - integerpublic void setPrimaryKeyOfPreviousReportingRecordBySequence(int sequence,
com.onwbp.adaptation.PrimaryKey primaryKey)
Big data or Flat data table depending on the IndicatorDefinition, used for updates.sequence - integerprimaryKey - PrimaryKeypublic boolean noLinkedRecord()
true if there aren't any linked records.public Iterator<Map.Entry<Integer,LinkedRecord>> getLinkedRecords()
public void addLinkedRecord(int sequence,
LinkedRecord linkedRecord)