Class ProcessingProgress

    • Constructor Detail

      • ProcessingProgress

        public ProcessingProgress()
        Constructor
    • Method Detail

      • init

        public void init​(IProcessingProgress processingProgress)
        Initialize a previous state
        Parameters:
        processingProgress - the processing progress to initialize
      • setTotalUnits

        public void setTotalUnits​(long totalUnits)
        Sets the total units
        Parameters:
        totalUnits - the total units
      • setProcessedUnits

        public void setProcessedUnits​(long processedUnits)
        Sets the total processed units
        Parameters:
        processedUnits - the total processed units
      • setTotalFailedUnits

        public void setTotalFailedUnits​(long totalFailedUnits)
        Sets the total failed units
        Parameters:
        totalFailedUnits - the total failed units
      • setProcessingStatusType

        public void setProcessingStatusType​(ProcessingStatusType processingStatusType)
        Sets the processing status type
        Parameters:
        processingStatusType - the processing status type
      • setStatusMessage

        public void setStatusMessage​(java.lang.String processingStatusMessage)
        Sets the processing status message
        Parameters:
        processingStatusMessage - the processing status message
      • increaseTotalUnits

        public void increaseTotalUnits()
        Increase the total units
      • increaseTotalProcessedUnits

        public void increaseTotalProcessedUnits()
        Increase the total processed units
      • increaseTotalFailedUnits

        public void increaseTotalFailedUnits()
        Increase the total failed units
      • addStatistic

        public void addStatistic​(java.lang.String key,
                                 java.lang.Double value)
                          throws java.lang.IllegalArgumentException
        Adds a statistic value
        Parameters:
        key - the key
        value - the value
        Throws:
        java.lang.IllegalArgumentException - In case of invalid key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()