Class ProcessingResult
- java.lang.Object
-
- com.github.toolarium.processing.engine.dto.result.ProcessingResult
-
- All Implemented Interfaces:
IProcessingResult
,java.io.Serializable
public class ProcessingResult extends java.lang.Object implements IProcessingResult, java.io.Serializable
Implements theIProcessingResult
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessingResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getId()
Get the idjava.lang.String
getName()
Get the namelong
getNumberOfFailedUnits()
Gets the number of failed units.long
getNumberOfProcessedUnits()
Gets the number of processed units (failed units included).long
getNumberOfSuccessfulUnits()
Gets the number of successful units.IProcessingStatistic
getProcesingStatistic()
The processing statistic.long
getProcessingDuration()
Get the processing duration in milliseconds (excluded possible suspending)com.github.toolarium.processing.unit.dto.ProcessingRuntimeStatus
getProcessingRuntimeStatus()
The processing runtime status which covers the overall statusjava.lang.String
getProcessingUnitClassname()
Get the processing unit class nameint
getProgress()
Get the progressjava.time.Instant
getStartTimestamp()
Get the start time stampjava.util.List<java.lang.String>
getStatusMessageList()
Returns the processing status messagejava.time.Instant
getStopTimestamp()
Get the end time stamp when it has endedint
hashCode()
boolean
isAborted()
True if the processing is abortedvoid
setId(java.lang.String id)
Set the idvoid
setIsAborted(boolean isAborted)
Set is abortedvoid
setName(java.lang.String name)
Set the namevoid
setNumberOfFailedUnits(long numberOfFailedUnits)
Set the number of failed processed unitsvoid
setNumberOfProcessedUnits(long numberOfProcessedUnits)
Set the number of processed unitsvoid
setNumberOfSuccessfulUnits(long numberOfSuccessfulUnits)
Set the number of successful unitsvoid
setProcessingDuration(long durationInMilliseconds)
Set the processing durationvoid
setProcessingRuntimeStatus(com.github.toolarium.processing.unit.dto.ProcessingRuntimeStatus processingRuntimeStatus)
Set the processing runtime statusvoid
setProcessingStatistic(IProcessingStatistic processingStatistic)
Set the processing statisticvoid
setProcessingUnitClassname(java.lang.String processingUnitClassname)
Set the processing unit class namevoid
setProgress(int progress)
Set the progress in percentagevoid
setStartTimestamp(java.time.Instant startTimestamp)
Set the start time stampvoid
setStatusMessageList(java.util.List<java.lang.String> statusMessageList)
Set the status message listvoid
setStopTimestamp(java.time.Instant stopTimestamp)
Set the stop time stampjava.lang.String
toString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:IProcessingResult
Get the id- Specified by:
getId
in interfaceIProcessingResult
- Returns:
- the id
- See Also:
IProcessingResult.getId()
-
setId
public void setId(java.lang.String id)
Set the id- Parameters:
id
- the id
-
getName
public java.lang.String getName()
Description copied from interface:IProcessingResult
Get the name- Specified by:
getName
in interfaceIProcessingResult
- Returns:
- the name
- See Also:
IProcessingResult.getName()
-
setName
public void setName(java.lang.String name)
Set the name- Parameters:
name
- the name
-
getProcessingUnitClassname
public java.lang.String getProcessingUnitClassname()
Description copied from interface:IProcessingResult
Get the processing unit class name- Specified by:
getProcessingUnitClassname
in interfaceIProcessingResult
- Returns:
- the processing unit class name
- See Also:
IProcessingResult.getProcessingUnitClassname()
-
setProcessingUnitClassname
public void setProcessingUnitClassname(java.lang.String processingUnitClassname)
Set the processing unit class name- Parameters:
processingUnitClassname
- the processing unit class name
-
getStartTimestamp
public java.time.Instant getStartTimestamp()
Description copied from interface:IProcessingResult
Get the start time stamp- Specified by:
getStartTimestamp
in interfaceIProcessingResult
- Returns:
- the start time stamp
- See Also:
IProcessingResult.getStartTimestamp()
-
setStartTimestamp
public void setStartTimestamp(java.time.Instant startTimestamp)
Set the start time stamp- Parameters:
startTimestamp
- the start time stamp
-
getStopTimestamp
public java.time.Instant getStopTimestamp()
Description copied from interface:IProcessingResult
Get the end time stamp when it has ended- Specified by:
getStopTimestamp
in interfaceIProcessingResult
- Returns:
- the end time stamp
- See Also:
IProcessingResult.getStopTimestamp()
-
setStopTimestamp
public void setStopTimestamp(java.time.Instant stopTimestamp)
Set the stop time stamp- Parameters:
stopTimestamp
- the stop time stamp
-
getProcessingDuration
public long getProcessingDuration()
Description copied from interface:IProcessingResult
Get the processing duration in milliseconds (excluded possible suspending)- Specified by:
getProcessingDuration
in interfaceIProcessingResult
- Returns:
- the processing duration in milliseconds
- See Also:
IProcessingResult.getProcessingDuration()
-
setProcessingDuration
public void setProcessingDuration(long durationInMilliseconds)
Set the processing duration- Parameters:
durationInMilliseconds
- the processing duration
-
getNumberOfProcessedUnits
public long getNumberOfProcessedUnits()
Description copied from interface:IProcessingResult
Gets the number of processed units (failed units included).- Specified by:
getNumberOfProcessedUnits
in interfaceIProcessingResult
- Returns:
- the number of processed units (failed units included).
- See Also:
IProcessingResult.getNumberOfProcessedUnits()
-
setNumberOfProcessedUnits
public void setNumberOfProcessedUnits(long numberOfProcessedUnits)
Set the number of processed units- Parameters:
numberOfProcessedUnits
- the number of processed units
-
getNumberOfSuccessfulUnits
public long getNumberOfSuccessfulUnits()
Description copied from interface:IProcessingResult
Gets the number of successful units.- Specified by:
getNumberOfSuccessfulUnits
in interfaceIProcessingResult
- Returns:
- the number of successful units.
- See Also:
IProcessingResult.getNumberOfSuccessfulUnits()
-
setNumberOfSuccessfulUnits
public void setNumberOfSuccessfulUnits(long numberOfSuccessfulUnits)
Set the number of successful units- Parameters:
numberOfSuccessfulUnits
- the number of successful units
-
getNumberOfFailedUnits
public long getNumberOfFailedUnits()
Description copied from interface:IProcessingResult
Gets the number of failed units.- Specified by:
getNumberOfFailedUnits
in interfaceIProcessingResult
- Returns:
- the number of failed units.
- See Also:
IProcessingResult.getNumberOfFailedUnits()
-
setNumberOfFailedUnits
public void setNumberOfFailedUnits(long numberOfFailedUnits)
Set the number of failed processed units- Parameters:
numberOfFailedUnits
- the number of failed processed units
-
getProgress
public int getProgress()
Description copied from interface:IProcessingResult
Get the progress- Specified by:
getProgress
in interfaceIProcessingResult
- Returns:
- the progress
- See Also:
IProcessingResult.getProgress()
-
setProgress
public void setProgress(int progress)
Set the progress in percentage- Parameters:
progress
- the progress in percentage
-
getProcessingRuntimeStatus
public com.github.toolarium.processing.unit.dto.ProcessingRuntimeStatus getProcessingRuntimeStatus()
Description copied from interface:IProcessingResult
The processing runtime status which covers the overall status- Specified by:
getProcessingRuntimeStatus
in interfaceIProcessingResult
- Returns:
- the processing status type.
- See Also:
IProcessingResult.getProcessingRuntimeStatus()
-
setProcessingRuntimeStatus
public void setProcessingRuntimeStatus(com.github.toolarium.processing.unit.dto.ProcessingRuntimeStatus processingRuntimeStatus)
Set the processing runtime status- Parameters:
processingRuntimeStatus
- the processing runtime status
-
isAborted
public boolean isAborted()
Description copied from interface:IProcessingResult
True if the processing is aborted- Specified by:
isAborted
in interfaceIProcessingResult
- Returns:
- true if it is aborted
- See Also:
IProcessingResult.isAborted()
-
setIsAborted
public void setIsAborted(boolean isAborted)
Set is aborted- Parameters:
isAborted
- the true if it is aborted
-
getStatusMessageList
public java.util.List<java.lang.String> getStatusMessageList()
Description copied from interface:IProcessingResult
Returns the processing status message- Specified by:
getStatusMessageList
in interfaceIProcessingResult
- Returns:
- the processing status message
- See Also:
IProcessingResult.getStatusMessageList()
-
setStatusMessageList
public void setStatusMessageList(java.util.List<java.lang.String> statusMessageList)
Set the status message list- Parameters:
statusMessageList
- the status message list
-
getProcesingStatistic
public IProcessingStatistic getProcesingStatistic()
Description copied from interface:IProcessingResult
The processing statistic.- Specified by:
getProcesingStatistic
in interfaceIProcessingResult
- Returns:
- the processing statistic.
- See Also:
IProcessingResult.getProcesingStatistic()
-
setProcessingStatistic
public void setProcessingStatistic(IProcessingStatistic processingStatistic)
Set the processing statistic- Parameters:
processingStatistic
- the processing statistic
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-