public class ETLStepStatusImpl extends java.lang.Object implements ETLStepStatus, java.io.Serializable
ETLStepStatus interface.
Errors are stored in a non thread-safe collection.ETLStepStatus.ETLStepStatusCode| Constructor and Description |
|---|
ETLStepStatusImpl(java.lang.String stepUuid) |
ETLStepStatusImpl(java.lang.String stepUuid,
java.util.Collection<ETLException> errors) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(ETLStepResult newData)
Add one or more rows of data to the step's cache.
|
void |
addError(ETLException e)
Add an unhandled error to the set of errors.
|
void |
cancel()
Set the status of the step to cancelled, if it is not complete.
|
ETLStepResult |
getData(java.lang.String outFlowUuid)
Get data generated emitted by this step along the specified output flow UUID.
|
long |
getEndTime()
End Time as milliseconds from midnight, January 1, 1970 UTC.
|
java.util.Collection<ETLException> |
getErrors()
Get all unhandled errors.
|
java.util.Map<java.lang.String,java.lang.Long> |
getProcessedRowCount()
Number of rows processed by the step and sent down the chain for each flow.
|
long |
getProcessedRowCount(java.lang.String outFlowUuid)
Number of rows processed by the step and sent down the chain for a given flowUUID.
|
long |
getStartTime()
Start Time as milliseconds from midnight, January 1, 1970 UTC.
|
ETLStepStatus.ETLStepStatusCode |
getStatusCode()
Get the current status of the step represented by
ETLStepStatus.ETLStepStatusCode |
java.lang.String |
getStepUuid()
UUID of the step whose status is encapsulated here.
|
boolean |
hasErrors()
Were there any unhandled errors?
|
boolean |
isComplete()
True when the step has finished.
|
void |
rowProcessed(java.lang.String outFlowUuid)
Indicate that a row has been processed on a given flow.
|
void |
setStatusCode(ETLStepStatus.ETLStepStatusCode statusCode)
Set the step's status to an
ETLStepStatus.ETLStepStatusCode |
public ETLStepStatusImpl(java.lang.String stepUuid)
public ETLStepStatusImpl(java.lang.String stepUuid,
java.util.Collection<ETLException> errors)
public java.lang.String getStepUuid()
ETLStepStatusgetStepUuid in interface ETLStepStatuspublic java.util.Map<java.lang.String,java.lang.Long> getProcessedRowCount()
ETLStepStatusgetProcessedRowCount in interface ETLStepStatuspublic long getProcessedRowCount(java.lang.String outFlowUuid)
ETLStepStatusgetProcessedRowCount in interface ETLStepStatuspublic void rowProcessed(java.lang.String outFlowUuid)
ETLStepStatusrowProcessed in interface ETLStepStatuspublic boolean isComplete()
ETLStepStatusisComplete in interface ETLStepStatuspublic boolean hasErrors()
ETLStepStatushasErrors in interface ETLStepStatuspublic java.util.Collection<ETLException> getErrors()
ETLStepStatusgetErrors in interface ETLStepStatuspublic void addError(ETLException e)
ETLStepStatusaddError in interface ETLStepStatuspublic ETLStepStatus.ETLStepStatusCode getStatusCode()
ETLStepStatusETLStepStatus.ETLStepStatusCodegetStatusCode in interface ETLStepStatuspublic void setStatusCode(ETLStepStatus.ETLStepStatusCode statusCode)
ETLStepStatusETLStepStatus.ETLStepStatusCodesetStatusCode in interface ETLStepStatuspublic ETLStepResult getData(java.lang.String outFlowUuid)
ETLStepStatusgetData in interface ETLStepStatuspublic void addData(ETLStepResult newData)
ETLStepStatusaddData in interface ETLStepStatusnewData - - Instance of ETLStepResult.public void cancel()
ETLStepStatuscancel in interface ETLStepStatuspublic long getStartTime()
ETLStepStatusgetStartTime in interface ETLStepStatuspublic long getEndTime()
ETLStepStatusgetEndTime in interface ETLStepStatus