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 processed units
        Parameters:
        numberOfSuccessfulUnits - the number of successful processed units
        Returns:
        this instance
      • increaseNumberOfSuccessfulUnits

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

        public ProcessingUnitStatus increaseNumberOfSuccessfulUnits​(java.lang.Long numberOfSuccessfulUnits)
        Increase the number of successful processed units
        Parameters:
        numberOfSuccessfulUnits - the number of successful units to add
        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
      • increaseNumberOfFailedUnits

        public ProcessingUnitStatus increaseNumberOfFailedUnits​(java.lang.Long numberOfFailedUnits)
        Increase the number of failed units
        Parameters:
        numberOfFailedUnits - the number of failed units to add
        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
      • increaseNumberOfUnprocessedUnits

        public ProcessingUnitStatus increaseNumberOfUnprocessedUnits()
        Increase the number of unprocessed units
        Returns:
        this instance
      • increaseNumberOfUnprocessedUnits

        public ProcessingUnitStatus increaseNumberOfUnprocessedUnits​(java.lang.Long numberOfUnprocessedUnits)
        Increase the number of unprocessed units
        Parameters:
        numberOfUnprocessedUnits - the number of unprocessed units to add
        Returns:
        this instance
      • setProcessingRuntimeStatus

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

        public ProcessingUnitStatus setStatusMessageList​(java.util.List<java.lang.String> statusMessageList)
        Sets the status message list
        Parameters:
        statusMessageList - the status message list
        Returns:
        this instance
      • addStatusMessage

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

        public com.github.toolarium.common.statistic.StatisticCounter addStatistic​(java.lang.String key,
                                                                                   java.lang.Long value)
        Add statistic
        Parameters:
        key - the key / name of the statistic
        value - the value to add
        Returns:
        the statistic counter
      • addStatistic

        public com.github.toolarium.common.statistic.StatisticCounter addStatistic​(java.lang.String key,
                                                                                   java.lang.Double value)
        Add statistic
        Parameters:
        key - the key / name of the statistic
        value - the value to add
        Returns:
        the statistic counter
      • addStatistic

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