public class ETLProcessStatusImpl extends java.lang.Object implements ETLProcessStatus, java.io.Serializable
ETLProcessStatus
interface.ETLProcessStatus.ETLProcessStatusCode
Constructor and Description |
---|
ETLProcessStatusImpl(java.lang.String processUuid) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Set the status of the process and unfinished steps to cancelled.
|
static ETLProcessStatusImpl |
fromJson(java.lang.String jsonString)
Convert a JSON string to an instance of ETLProcessStatusImpl.
|
long |
getEndTime()
End time of the process as milliseconds from midnight, January 1, 1970 UTC.
|
java.lang.String |
getProcessUuid()
Get the UUID of the ETL Process whose status this object represents.
|
long |
getStartTime()
Start time of the process as milliseconds from midnight, January 1, 1970 UTC.
|
ETLProcessStatus.ETLProcessStatusCode |
getStatusCode()
Get the process's status code as defined in
ETLProcessStatus.ETLProcessStatusCode |
java.util.Map<java.lang.String,ETLStepStatus> |
getStepStatusMap()
Holds the status of each step in the Process.
|
boolean |
hasErrors()
Were there unhandled errors in execution?
|
boolean |
isComplete()
True if the process has finished executing.
|
void |
registerStep(ETLStep step)
Register an
ETLStep object for recording status. |
void |
setStatusCode(ETLProcessStatus.ETLProcessStatusCode status)
Set the process's status code to a value defined in
ETLProcessStatus.ETLProcessStatusCode |
java.lang.String |
toJson()
Serialise the status object into a JSON string
|
public java.lang.String getProcessUuid()
ETLProcessStatus
getProcessUuid
in interface ETLProcessStatus
public java.util.Map<java.lang.String,ETLStepStatus> getStepStatusMap()
ETLProcessStatus
ETLStepStatus
for that step.getStepStatusMap
in interface ETLProcessStatus
public void registerStep(ETLStep step)
ETLProcessStatus
ETLStep
object for recording status.registerStep
in interface ETLProcessStatus
public boolean isComplete()
ETLProcessStatus
isComplete
in interface ETLProcessStatus
public boolean hasErrors()
ETLProcessStatus
hasErrors
in interface ETLProcessStatus
public ETLProcessStatus.ETLProcessStatusCode getStatusCode()
ETLProcessStatus
ETLProcessStatus.ETLProcessStatusCode
getStatusCode
in interface ETLProcessStatus
public void setStatusCode(ETLProcessStatus.ETLProcessStatusCode status)
ETLProcessStatus
ETLProcessStatus.ETLProcessStatusCode
setStatusCode
in interface ETLProcessStatus
public void cancel()
ETLProcessStatus
cancel
in interface ETLProcessStatus
public long getStartTime()
ETLProcessStatus
getStartTime
in interface ETLProcessStatus
public long getEndTime()
ETLProcessStatus
getEndTime
in interface ETLProcessStatus
public java.lang.String toJson()
ETLProcessStatus
toJson
in interface ETLProcessStatus
public static ETLProcessStatusImpl fromJson(java.lang.String jsonString)