@Entity public class BundleActionBean extends java.lang.Object implements org.apache.hadoop.io.Writable, JsonBean
| Constructor and Description |
|---|
BundleActionBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
decrementAndGetPending()
decrement pending and return it
|
java.lang.String |
getBundleActionId()
Get the Bundle Action Id.
|
java.lang.String |
getBundleId()
Get the BundleId
|
java.lang.String |
getCoordId()
Get the coordinator Id.
|
java.lang.String |
getCoordName()
Get the Coordinator name.
|
java.util.Date |
getLastModifiedTime()
Get Last modified time.
|
java.sql.Timestamp |
getLastModifiedTimestamp()
Get Last modified time.
|
int |
getPending()
Get some actions are in progress for particular bundle action.
|
org.apache.oozie.client.Job.Status |
getStatus()
Get the Status of the Bundle Action
|
java.lang.String |
getStatusStr()
Get the Status of the Bundle Action
|
int |
incrementAndGetPending()
increment pending and return it
|
boolean |
isCritical()
Return if the action is critical.
|
boolean |
isPending()
Return if the action is pending.
|
boolean |
isTerminalStatus() |
void |
readFields(java.io.DataInput dataInput) |
void |
resetCritical()
Reseset Whether this bundle action is critical or not.
|
void |
setBundleActionId(java.lang.String bundleActionId)
bundleActionId to set
|
void |
setBundleId(java.lang.String bundleId)
Set the Bundle Id.
|
void |
setCoordId(java.lang.String coordId)
Set the coordinator Id.
|
void |
setCoordName(java.lang.String coordName)
Set the Coordinator name.
|
void |
setCritical()
Set Whether this bundle action is critical or not.
|
void |
setLastModifiedTime(java.util.Date lastModifiedTime)
Set Last modified time.
|
void |
setLastModifiedTimestamp(java.sql.Timestamp lastModifiedTimestamp)
Set Last modified time.
|
void |
setPending(int pending)
Set some actions are in progress for particular bundle action.
|
void |
setStatus(org.apache.oozie.client.Job.Status val)
Set the Status of the Bundle Action
|
void |
setStatusStr(java.lang.String statusStr)
Set the Status of the Bundle Action
|
org.json.simple.JSONObject |
toJSONObject()
Return the JSONObject for the bean with GMT time zone.
|
org.json.simple.JSONObject |
toJSONObject(java.lang.String timeZoneId)
Return the JSONObject for the bean with the given time zone.
|
void |
write(java.io.DataOutput dataOutput) |
public BundleActionBean()
public void setBundleActionId(java.lang.String bundleActionId)
bundleActionId - the bundleActionId to setpublic java.lang.String getBundleActionId()
public java.lang.String getBundleId()
public void setBundleId(java.lang.String bundleId)
bundleId - public java.lang.String getCoordName()
public void setCoordName(java.lang.String coordName)
coordName - public java.lang.String getCoordId()
public void setCoordId(java.lang.String coordId)
coordId - public org.apache.oozie.client.Job.Status getStatus()
public java.lang.String getStatusStr()
public void setStatusStr(java.lang.String statusStr)
public void setStatus(org.apache.oozie.client.Job.Status val)
val - public void setCritical()
critical - set critical to truepublic void resetCritical()
critical - set critical to falsepublic boolean isCritical()
public void setPending(int pending)
pending - set pending to truepublic int incrementAndGetPending()
public int decrementAndGetPending()
public int getPending()
public boolean isPending()
public boolean isTerminalStatus()
public void setLastModifiedTimestamp(java.sql.Timestamp lastModifiedTimestamp)
lastModifiedTimestamp - the lastModifiedTimestamp to setpublic void setLastModifiedTime(java.util.Date lastModifiedTime)
lastModifiedTime - the lastModifiedTime to setpublic java.util.Date getLastModifiedTime()
public java.sql.Timestamp getLastModifiedTimestamp()
public void write(java.io.DataOutput dataOutput) throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput dataInput) throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic org.json.simple.JSONObject toJSONObject()
JsonBeantoJSONObject in interface JsonBeanpublic org.json.simple.JSONObject toJSONObject(java.lang.String timeZoneId)
JsonBeantoJSONObject in interface JsonBeantimeZoneId - the time zone to useCopyright © 2019 Apache Software Foundation. All Rights Reserved.