@Entity public class BundleActionBean extends 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
|
String |
getBundleActionId()
Get the Bundle Action Id.
|
String |
getBundleId()
Get the BundleId
|
String |
getCoordId()
Get the coordinator Id.
|
String |
getCoordName()
Get the Coordinator name.
|
Date |
getLastModifiedTime()
Get Last modified time.
|
Timestamp |
getLastModifiedTimestamp()
Get Last modified time.
|
int |
getPending()
Get some actions are in progress for particular bundle action.
|
Job.Status |
getStatus()
Get the Status of the Bundle Action
|
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(DataInput dataInput) |
void |
resetCritical()
Reseset that this bundle action is not critical.
|
void |
setBundleActionId(String bundleActionId)
bundleActionId to set
|
void |
setBundleId(String bundleId)
Set the Bundle Id.
|
void |
setCoordId(String coordId)
Set the coordinator Id.
|
void |
setCoordName(String coordName)
Set the Coordinator name.
|
void |
setCritical()
Set that this bundle action is critical.
|
void |
setLastModifiedTime(Date lastModifiedTime)
Set Last modified time.
|
void |
setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
Set Last modified time.
|
void |
setPending(int pending)
Set some actions are in progress for particular bundle action.
|
void |
setStatus(Job.Status val)
Set the Status of the Bundle Action
|
void |
setStatusStr(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(String timeZoneId)
Return the JSONObject for the bean with the given time zone.
|
void |
write(DataOutput dataOutput) |
public BundleActionBean()
public void setBundleActionId(String bundleActionId)
bundleActionId
- the bundleActionId to setpublic String getBundleActionId()
public String getBundleId()
public void setBundleId(String bundleId)
bundleId
- the bundle Idpublic String getCoordName()
public void setCoordName(String coordName)
coordName
- the Coordinator namepublic String getCoordId()
public void setCoordId(String coordId)
coordId
- the coordinator idpublic Job.Status getStatus()
public String getStatusStr()
public void setStatusStr(String statusStr)
statusStr
- status stringpublic void setStatus(Job.Status val)
val
- the status to setpublic void setCritical()
public void resetCritical()
public 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(Timestamp lastModifiedTimestamp)
lastModifiedTimestamp
- the lastModifiedTimestamp to setpublic void setLastModifiedTime(Date lastModifiedTime)
lastModifiedTime
- the lastModifiedTime to setpublic Date getLastModifiedTime()
public Timestamp getLastModifiedTimestamp()
public void write(DataOutput dataOutput) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBean
toJSONObject
in interface JsonBean
timeZoneId
- the time zone to useCopyright © 2018 Apache Software Foundation. All rights reserved.