Class AggregationStatus

java.lang.Object
org.gcube.accounting.aggregator.status.AggregationStatus

public class AggregationStatus extends Object
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • aggregationInfo

      protected AggregationInfo aggregationInfo
    • uuid

      protected UUID uuid
    • originalRecordsNumber

      protected int originalRecordsNumber
    • aggregatedRecordsNumber

      protected int aggregatedRecordsNumber
    • recoveredRecordNumber

      protected int recoveredRecordNumber
    • malformedRecordNumber

      protected int malformedRecordNumber
    • percentage

      protected float percentage
    • context

      protected String context
    • restartFrom

      protected int restartFrom
    • previous

      protected AggregationStatus previous
    • aggregationState

      protected AggregationState aggregationState
    • lastUpdateTime

      protected Calendar lastUpdateTime
    • aggregationStateEvents

      protected List<AggregationStateEvent> 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

      public AggregationInfo 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

      public UUID getUUID()
    • setUUID

      public void setUUID(UUID uuid)
    • setAggregation

      public void setAggregation(AggregationInfo aggregation)
    • getOriginalRecordsNumber

      public int getOriginalRecordsNumber()
    • getAggregatedRecordsNumber

      public int getAggregatedRecordsNumber()
    • getRecoveredRecordNumber

      public int getRecoveredRecordNumber()
    • getPercentage

      public float getPercentage()
    • getAggregationState

      public AggregationState getAggregationState()
    • setAggregationState

      public void setAggregationState(AggregationState aggregationState)
    • getAggregationStateEvents

      public List<AggregationStateEvent> getAggregationStateEvents()
    • getContext

      public String getContext()
    • setContext

      public void setContext(String context)
    • getRestartFrom

      public int getRestartFrom()
    • setRestartFrom

      public void setRestartFrom(int restartFrom, boolean sync) throws Exception
      Throws:
      Exception
    • getPrevious

      public AggregationStatus getPrevious()
    • getMalformedRecordNumber

      public int getMalformedRecordNumber()
    • setMalformedRecordNumber

      public void setMalformedRecordNumber(int malformedRecordNumber)
    • getLastUpdateTime

      public Calendar getLastUpdateTime()
    • setLastUpdateTime

      public void setLastUpdateTime(Calendar lastUpdateTime)
    • updateLastUpdateTime

      public void updateLastUpdateTime(boolean sync) throws Exception
      Throws:
      Exception