Class ProcessingUnitStatus

    • Constructor Detail

      • ProcessingUnitStatus

        public ProcessingUnitStatus()
        Constructor
    • Method Detail

      • hasMoreUnitsToProcess

        public ProcessingUnitStatus hasMoreUnitsToProcess()
        Mark there are more units to process
        Returns:
        this instance
      • setHasNext

        public ProcessingUnitStatus setHasNext​(boolean hasNext)
        Set has next
        Parameters:
        hasNext - true if it has more to process.
        Returns:
        this instance
      • setNumberOfSuccessfulUnits

        public ProcessingUnitStatus setNumberOfSuccessfulUnits​(java.lang.Long numberOfSuccessfulUnits)
        Set the number of successful units
        Parameters:
        numberOfSuccessfulUnits - the number of successful units
        Returns:
        this instance
      • increaseNumberOfSuccessfulUnits

        public ProcessingUnitStatus increaseNumberOfSuccessfulUnits()
        Increase the number of successful units
        Returns:
        this instance
      • setNumberOfFailedUnits

        public ProcessingUnitStatus setNumberOfFailedUnits​(java.lang.Long numberOfFailedUnits)
        Set the number of failed units
        Parameters:
        numberOfFailedUnits - the number of failed units
        Returns:
        this instance
      • increaseNumberOfFailedUnits

        public ProcessingUnitStatus increaseNumberOfFailedUnits()
        Increase the number of failed units
        Returns:
        this instance
      • setNumberOfUnprocessedUnits

        public ProcessingUnitStatus setNumberOfUnprocessedUnits​(java.lang.Long numberOfUnprocessedUnits)
        Set the number of unprocessed units
        Parameters:
        numberOfUnprocessedUnits - the number of unprocessed units
        Returns:
        this instance
      • setProcessingRuntimeStatus

        public ProcessingUnitStatus setProcessingRuntimeStatus​(ProcessingRuntimeStatus processingRuntimeStatus)
        Set the processing runtime statis
        Parameters:
        processingRuntimeStatus - the processing runtime statis
        Returns:
        this instance
      • setStatusMessage

        public ProcessingUnitStatus setStatusMessage​(java.lang.String statusMessage)
        Sets the status message
        Parameters:
        statusMessage - the status message
        Returns:
        this instance
      • addStatistic

        public void addStatistic​(java.lang.String key,
                                 java.lang.Long value)
        Add statistic
        Parameters:
        key - the key / name of the statistic
        value - the value to add
      • addStatistic

        public void addStatistic​(java.lang.String key,
                                 java.lang.Double value)
        Add statistic
        Parameters:
        key - the key / name of the statistic
        value - the value to add
      • getStatisticCounter

        public com.github.toolarium.common.statistic.StatisticCounter getStatisticCounter​(java.lang.String key)
        Get statistic counter
        Parameters:
        key - the key / name of the statistic
        Returns:
        the statistic counter
      • 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()