Class AggregationStatus
java.lang.Object
org.gcube.accounting.aggregator.status.AggregationStatus
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected AggregationInfoprotected AggregationStateprotected List<AggregationStateEvent>protected Stringprotected Calendarprotected intprotected intprotected floatprotected AggregationStatusprotected intprotected intprotected UUID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAggregationStatus(AggregationInfo aggregationInfo) AggregationStatus(AggregationStatus aggregationStatus) -
Method Summary
Modifier and TypeMethodDescriptionintstatic AggregationStatusgetAggregationStatus(String recordType, AggregationType aggregationType, Date aggregationStartDate) static AggregationStatusgetLast(String recordType, AggregationType aggregationType, Date aggregationStartDate, Date aggregationEndDate) intintfloatintintstatic List<AggregationStatus>getUnterminated(String recordType, AggregationType aggregationType, boolean forceEarlyAggregation) getUUID()voidsetAggregation(AggregationInfo aggregation) voidsetAggregationState(AggregationState aggregationState) voidsetAggregationState(AggregationState aggregationState, Calendar startTime, boolean sync) voidsetContext(String context) voidsetLastUpdateTime(Calendar lastUpdateTime) voidsetMalformedRecordNumber(int malformedRecordNumber) voidsetRecordNumbers(int originalRecordsNumber, int aggregatedRecordsNumber, int malformedRecordNumber) voidsetRestartFrom(int restartFrom, boolean sync) voidvoidupdateLastUpdateTime(boolean sync)
-
Field Details
-
aggregationInfo
-
uuid
-
originalRecordsNumber
protected int originalRecordsNumber -
aggregatedRecordsNumber
protected int aggregatedRecordsNumber -
recoveredRecordNumber
protected int recoveredRecordNumber -
malformedRecordNumber
protected int malformedRecordNumber -
percentage
protected float percentage -
context
-
restartFrom
protected int restartFrom -
previous
-
aggregationState
-
lastUpdateTime
-
aggregationStateEvents
-
-
Constructor Details
-
Method Details
-
getLast
public static AggregationStatus getLast(String recordType, AggregationType aggregationType, Date aggregationStartDate, Date aggregationEndDate) throws Exception - Throws:
Exception
-
getUnterminated
public static List<AggregationStatus> getUnterminated(String recordType, AggregationType aggregationType, boolean forceEarlyAggregation) throws Exception - Throws:
Exception
-
getAggregationStatus
public static AggregationStatus getAggregationStatus(String recordType, AggregationType aggregationType, Date aggregationStartDate) throws Exception - Throws:
Exception
-
getAggregationInfo
-
setAggregationState
public void setAggregationState(AggregationState aggregationState, Calendar startTime, boolean sync) throws Exception - Throws:
Exception
-
setRecordNumbers
public void setRecordNumbers(int originalRecordsNumber, int aggregatedRecordsNumber, int malformedRecordNumber) -
getUUID
-
setUUID
-
setAggregation
-
getOriginalRecordsNumber
public int getOriginalRecordsNumber() -
getAggregatedRecordsNumber
public int getAggregatedRecordsNumber() -
getRecoveredRecordNumber
public int getRecoveredRecordNumber() -
getPercentage
public float getPercentage() -
getAggregationState
-
setAggregationState
-
getAggregationStateEvents
-
getContext
-
setContext
-
getRestartFrom
public int getRestartFrom() -
setRestartFrom
- Throws:
Exception
-
getPrevious
-
getMalformedRecordNumber
public int getMalformedRecordNumber() -
setMalformedRecordNumber
public void setMalformedRecordNumber(int malformedRecordNumber) -
getLastUpdateTime
-
setLastUpdateTime
-
updateLastUpdateTime
- Throws:
Exception
-