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()
ETLStepStatus
getStepUuid
in interface ETLStepStatus
public java.util.Map<java.lang.String,java.lang.Long> getProcessedRowCount()
ETLStepStatus
getProcessedRowCount
in interface ETLStepStatus
public long getProcessedRowCount(java.lang.String outFlowUuid)
ETLStepStatus
getProcessedRowCount
in interface ETLStepStatus
public void rowProcessed(java.lang.String outFlowUuid)
ETLStepStatus
rowProcessed
in interface ETLStepStatus
public boolean isComplete()
ETLStepStatus
isComplete
in interface ETLStepStatus
public boolean hasErrors()
ETLStepStatus
hasErrors
in interface ETLStepStatus
public java.util.Collection<ETLException> getErrors()
ETLStepStatus
getErrors
in interface ETLStepStatus
public void addError(ETLException e)
ETLStepStatus
addError
in interface ETLStepStatus
public ETLStepStatus.ETLStepStatusCode getStatusCode()
ETLStepStatus
ETLStepStatus.ETLStepStatusCode
getStatusCode
in interface ETLStepStatus
public void setStatusCode(ETLStepStatus.ETLStepStatusCode statusCode)
ETLStepStatus
ETLStepStatus.ETLStepStatusCode
setStatusCode
in interface ETLStepStatus
public ETLStepResult getData(java.lang.String outFlowUuid)
ETLStepStatus
getData
in interface ETLStepStatus
public void addData(ETLStepResult newData)
ETLStepStatus
addData
in interface ETLStepStatus
newData
- - Instance of ETLStepResult
.public void cancel()
ETLStepStatus
cancel
in interface ETLStepStatus
public long getStartTime()
ETLStepStatus
getStartTime
in interface ETLStepStatus
public long getEndTime()
ETLStepStatus
getEndTime
in interface ETLStepStatus