@Entity public class CoordinatorActionBean extends Object implements org.apache.hadoop.io.Writable, CoordinatorAction, JsonBean
CoordinatorAction.Status
Constructor and Description |
---|
CoordinatorActionBean() |
public CoordinatorActionBean()
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public void write(DataOutput dataOutput) throws IOException
write
in interface org.apache.hadoop.io.Writable
dataOutput
- data output.IOException
- thrown if the coordinator bean could not be
serialized.public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
dataInput
- data input.IOException
- thrown if the workflow bean could not be
deserialized.public String getJobId()
getJobId
in interface CoordinatorAction
public CoordinatorAction.Status getStatus()
getStatus
in interface CoordinatorAction
public String getStatusStr()
public void setStatus(CoordinatorAction.Status status)
public void setStatusStr(String statusStr)
public void setCreatedTime(Date createdTime)
public void setRerunTime(Date rerunTime)
public void setNominalTime(Date nominalTime)
public void setLastModifiedTime(Date lastModifiedTime)
public Date getCreatedTime()
getCreatedTime
in interface CoordinatorAction
public Timestamp getCreatedTimestamp()
public Date getRerunTime()
public Timestamp getRerunTimestamp()
public Date getLastModifiedTime()
getLastModifiedTime
in interface CoordinatorAction
public Timestamp getLastModifiedTimestamp()
public Date getNominalTime()
getNominalTime
in interface CoordinatorAction
public Timestamp getNominalTimestamp()
public String getExternalId()
getExternalId
in interface CoordinatorAction
public void setExternalId(String externalId)
public StringBlob getSlaXmlBlob()
public void setSlaXmlBlob(StringBlob slaXml)
public boolean isTerminalStatus()
public boolean isTerminalWithFailure()
public void setPending(int pending)
pending
- set pending to truepublic int incrementAndGetPending()
public int decrementAndGetPending()
public int getPending()
public boolean isPending()
public String getId()
getId
in interface CoordinatorAction
public void setActionNumber(int actionNumber)
public int getActionNumber()
getActionNumber
in interface CoordinatorAction
public String getCreatedConf()
getCreatedConf
in interface CoordinatorAction
public void setCreatedConf(String createdConf)
public void setCreatedConfBlob(StringBlob createdConf)
public StringBlob getCreatedConfBlob()
public void setRunConf(String runConf)
public String getRunConf()
getRunConf
in interface CoordinatorAction
public void setRunConfBlob(StringBlob runConf)
public StringBlob getRunConfBlob()
public void setMissingDependencies(String missingDependencies)
public String getMissingDependencies()
getMissingDependencies
in interface CoordinatorAction
public void setMissingDependenciesBlob(StringBlob missingDependencies)
public StringBlob getMissingDependenciesBlob()
public String getPushMissingDependencies()
getPushMissingDependencies
in interface CoordinatorAction
public void setPushMissingDependencies(String pushMissingDependencies)
public void setPushMissingDependenciesBlob(StringBlob pushMissingDependencies)
public StringBlob getPushMissingDependenciesBlob()
public String getExternalStatus()
getExternalStatus
in interface CoordinatorAction
public void setExternalStatus(String externalStatus)
public String getTrackerUri()
getTrackerUri
in interface CoordinatorAction
public void setTrackerUri(String trackerUri)
public String getConsoleUrl()
getConsoleUrl
in interface CoordinatorAction
public void setConsoleUrl(String consoleUrl)
public String getErrorCode()
getErrorCode
in interface CoordinatorAction
public String getErrorMessage()
getErrorMessage
in interface CoordinatorAction
public void setErrorInfo(String errorCode, String errorMessage)
public String getActionXml()
public void setActionXml(String actionXml)
public void setActionXmlBlob(StringBlob actionXml)
public StringBlob getActionXmlBlob()
public int getTimeOut()
public void setTimeOut(int timeOut)
public void setErrorCode(String errorCode)
setErrorCode
in interface CoordinatorAction
public void setErrorMessage(String errorMessage)
setErrorMessage
in interface CoordinatorAction
public org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBean
toJSONObject
in interface JsonBean
timeZoneId
- the time zone to usepublic static org.json.simple.JSONArray toJSONArray(List<CoordinatorActionBean> actions, String timeZoneId)
actions
- nodes list.timeZoneId
- time zone to use for dates in the JSON array.public CoordInputDependency getPullInputDependencies()
public CoordInputDependency getPushInputDependencies()
public void setPullInputDependencies(CoordInputDependency coordPullInputDependency)
public void setPushInputDependencies(CoordInputDependency coordPushInputDependency)
Copyright © 2018 Apache Software Foundation. All rights reserved.