Class ProcessingUnitProgress
- java.lang.Object
-
- com.github.toolarium.processing.unit.runtime.ProcessingUnitProgress
-
- All Implemented Interfaces:
IProcessingUnitProgress,java.io.Serializable
public class ProcessingUnitProgress extends java.lang.Object implements IProcessingUnitProgress, java.io.Serializable
Implements theIProcessingUnitProgress.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessingUnitProgress()ConstructorProcessingUnitProgress(IProcessingUnitProgress processingProgress)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddProcessingUnitStatus(IProcessingUnitStatus processingUnitStatus)Add the processing unit statusbooleanequals(java.lang.Object obj)longgetNumberOfFailedUnits()Gets the number of failed units.longgetNumberOfProcessedUnits()Gets the number of processed units (failed units included).longgetNumberOfSuccessfulUnits()Gets the number of successful units.longgetNumberOfUnitsToProcess()Get the number of units to process in total.longgetNumberOfUnprocessedUnits()Get the number of unprocessed units.IProcessingUnitStatisticgetProcesingUnitStatistic()Get the processing unit statisticProcessingRuntimeStatusgetProcessingRuntimeStatus()The overall processing runtime status.inthashCode()ProcessingUnitProgressincreaseNumberOfFailedUnits()Increase the number of failed unitsProcessingUnitProgressincreaseNumberOfProcessedUnits()Increase the number of processed unitsProcessingUnitProgressincreaseTotalUnits()Increase the total unitsProcessingUnitProgresssetNumberOfFailedUnits(long numberOfFailedUnits)Sets the number of failed unitsProcessingUnitProgresssetNumberOfProcessedUnits(long processedUnits)Sets the number of processed unitsProcessingUnitProgresssetNumberOfUnitsToProcess(long numberOfUnitsToProcess)Sets the number of units to process in totalProcessingUnitProgresssetProcessingRuntimeStatus(ProcessingRuntimeStatus processingRuntimeStatus)Sets the processing status typejava.lang.StringtoString()
-
-
-
Constructor Detail
-
ProcessingUnitProgress
public ProcessingUnitProgress()
Constructor
-
ProcessingUnitProgress
public ProcessingUnitProgress(IProcessingUnitProgress processingProgress)
Constructor- Parameters:
processingProgress- the processing progress to initialize
-
-
Method Detail
-
addProcessingUnitStatus
public boolean addProcessingUnitStatus(IProcessingUnitStatus processingUnitStatus)
Add the processing unit status- Parameters:
processingUnitStatus- the processing unit status to add- Returns:
- true to continue processing
-
getNumberOfUnitsToProcess
public long getNumberOfUnitsToProcess()
Description copied from interface:IProcessingUnitProgressGet the number of units to process in total.- Specified by:
getNumberOfUnitsToProcessin interfaceIProcessingUnitProgress- Returns:
- the number of units to process in total.
- See Also:
IProcessingUnitProgress.getNumberOfUnitsToProcess()
-
setNumberOfUnitsToProcess
public ProcessingUnitProgress setNumberOfUnitsToProcess(long numberOfUnitsToProcess)
Sets the number of units to process in total- Parameters:
numberOfUnitsToProcess- the number of units to process in total- Returns:
- this instance
-
getNumberOfUnprocessedUnits
public long getNumberOfUnprocessedUnits()
Description copied from interface:IProcessingUnitProgressGet the number of unprocessed units.- Specified by:
getNumberOfUnprocessedUnitsin interfaceIProcessingUnitProgress- Returns:
- the number of unprocessed units.
- See Also:
IProcessingUnitProgress.getNumberOfUnprocessedUnits()
-
getNumberOfProcessedUnits
public long getNumberOfProcessedUnits()
Description copied from interface:IProcessingUnitProgressGets the number of processed units (failed units included).- Specified by:
getNumberOfProcessedUnitsin interfaceIProcessingUnitProgress- Returns:
- the number of processed units (failed units included).
- See Also:
IProcessingUnitProgress.getNumberOfProcessedUnits()
-
setNumberOfProcessedUnits
public ProcessingUnitProgress setNumberOfProcessedUnits(long processedUnits)
Sets the number of processed units- Parameters:
processedUnits- the number of processed units- Returns:
- this instance
-
getNumberOfSuccessfulUnits
public long getNumberOfSuccessfulUnits()
Description copied from interface:IProcessingUnitProgressGets the number of successful units.- Specified by:
getNumberOfSuccessfulUnitsin interfaceIProcessingUnitProgress- Returns:
- the number of successful units.
- See Also:
IProcessingUnitProgress.getNumberOfSuccessfulUnits()
-
getNumberOfFailedUnits
public long getNumberOfFailedUnits()
Description copied from interface:IProcessingUnitProgressGets the number of failed units.- Specified by:
getNumberOfFailedUnitsin interfaceIProcessingUnitProgress- Returns:
- the number of failed units.
- See Also:
IProcessingUnitProgress.getNumberOfFailedUnits()
-
setNumberOfFailedUnits
public ProcessingUnitProgress setNumberOfFailedUnits(long numberOfFailedUnits)
Sets the number of failed units- Parameters:
numberOfFailedUnits- the number of failed units- Returns:
- this instance
-
getProcessingRuntimeStatus
public ProcessingRuntimeStatus getProcessingRuntimeStatus()
Description copied from interface:IProcessingUnitProgressThe overall processing runtime status.- Specified by:
getProcessingRuntimeStatusin interfaceIProcessingUnitProgress- Returns:
- the processing status type.
- See Also:
IProcessingUnitProgress.getProcessingRuntimeStatus()
-
setProcessingRuntimeStatus
public ProcessingUnitProgress setProcessingRuntimeStatus(ProcessingRuntimeStatus processingRuntimeStatus)
Sets the processing status type- Parameters:
processingRuntimeStatus- the processing runtime status- Returns:
- this instance
-
increaseTotalUnits
public ProcessingUnitProgress increaseTotalUnits()
Increase the total units- Returns:
- this instance
-
increaseNumberOfProcessedUnits
public ProcessingUnitProgress increaseNumberOfProcessedUnits()
Increase the number of processed units- Returns:
- this instance
-
increaseNumberOfFailedUnits
public ProcessingUnitProgress increaseNumberOfFailedUnits()
Increase the number of failed units- Returns:
- this instance
-
getProcesingUnitStatistic
public IProcessingUnitStatistic getProcesingUnitStatistic()
Description copied from interface:IProcessingUnitProgressGet the processing unit statistic- Specified by:
getProcesingUnitStatisticin interfaceIProcessingUnitProgress- Returns:
- the processing unit statistic
- See Also:
IProcessingUnitProgress.getProcesingUnitStatistic()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-