@Entity public class SLASummaryBean extends Object implements JsonBean
Constructor and Description |
---|
SLASummaryBean() |
SLASummaryBean(SLACalcStatus slaCalc) |
Modifier and Type | Method and Description |
---|---|
long |
getActualDuration() |
Date |
getActualEnd() |
Timestamp |
getActualEndTimestamp() |
Date |
getActualStart() |
Timestamp |
getActualStartTimestamp() |
String |
getAppName() |
org.apache.oozie.AppType |
getAppType() |
Date |
getCreatedTime() |
Timestamp |
getCreatedTimestamp() |
byte |
getEventProcessed() |
org.apache.oozie.client.event.SLAEvent.EventStatus |
getEventStatus() |
String |
getEventStatusString() |
long |
getExpectedDuration() |
Date |
getExpectedEnd() |
Timestamp |
getExpectedEndTimestamp() |
Date |
getExpectedStart() |
Timestamp |
getExpectedStartTimestamp() |
String |
getId() |
String |
getJobStatus() |
Date |
getLastModifiedTime() |
Timestamp |
getLastModifiedTimestamp() |
Date |
getNominalTime() |
Timestamp |
getNominalTimestamp() |
String |
getParentId() |
org.apache.oozie.client.event.SLAEvent.SLAStatus |
getSLAStatus() |
String |
getSLAStatusString() |
String |
getUser() |
void |
setActualDuration(long actualDuration) |
void |
setActualEnd(Date actualEnd) |
void |
setActualStart(Date actualStart) |
void |
setAppName(String appName) |
void |
setAppType(org.apache.oozie.AppType appType) |
void |
setCreatedTime(Date createdTime) |
void |
setCreatedTimestamp(Timestamp createdTime) |
void |
setEventProcessed(int eventProcessed) |
void |
setEventStatus(org.apache.oozie.client.event.SLAEvent.EventStatus eventStatus) |
void |
setExpectedDuration(long expectedDuration) |
void |
setExpectedEnd(Date expectedEnd) |
void |
setExpectedStart(Date expectedStart) |
void |
setId(String jobId) |
void |
setJobStatus(String status) |
void |
setLastModifiedTime(Date lastModified) |
void |
setNominalTime(Date nominalTime) |
void |
setParentId(String parentId) |
void |
setSLAStatus(org.apache.oozie.client.event.SLAEvent.SLAStatus stage) |
void |
setUser(String user) |
org.json.simple.JSONObject |
toJSONObject()
Return the JSONObject for the bean with GMT time zone.
|
static org.json.simple.JSONObject |
toJSONObject(List<? extends SLASummaryBean> slaSummaryList,
String timeZoneId)
Convert a sla summary list into a json object.
|
org.json.simple.JSONObject |
toJSONObject(String timeZoneId)
Return the JSONObject for the bean with the given time zone.
|
public SLASummaryBean()
public SLASummaryBean(SLACalcStatus slaCalc)
public String getParentId()
public void setParentId(String parentId)
public Timestamp getCreatedTimestamp()
public void setCreatedTimestamp(Timestamp createdTime)
public Date getCreatedTime()
public void setCreatedTime(Date createdTime)
public Date getNominalTime()
public Timestamp getNominalTimestamp()
public void setNominalTime(Date nominalTime)
public Date getExpectedStart()
public Timestamp getExpectedStartTimestamp()
public void setExpectedStart(Date expectedStart)
public Date getExpectedEnd()
public Timestamp getExpectedEndTimestamp()
public void setExpectedEnd(Date expectedEnd)
public long getExpectedDuration()
public void setExpectedDuration(long expectedDuration)
public Date getActualStart()
public Timestamp getActualStartTimestamp()
public void setActualStart(Date actualStart)
public Date getActualEnd()
public Timestamp getActualEndTimestamp()
public void setActualEnd(Date actualEnd)
public long getActualDuration()
public void setActualDuration(long actualDuration)
public String getJobStatus()
public void setJobStatus(String status)
public org.apache.oozie.client.event.SLAEvent.EventStatus getEventStatus()
public void setEventStatus(org.apache.oozie.client.event.SLAEvent.EventStatus eventStatus)
public org.apache.oozie.client.event.SLAEvent.SLAStatus getSLAStatus()
public String getSLAStatusString()
public String getEventStatusString()
public void setSLAStatus(org.apache.oozie.client.event.SLAEvent.SLAStatus stage)
public String getAppName()
public void setAppName(String appName)
public org.apache.oozie.AppType getAppType()
public void setAppType(org.apache.oozie.AppType appType)
public byte getEventProcessed()
public void setEventProcessed(int eventProcessed)
public Date getLastModifiedTime()
public Timestamp getLastModifiedTimestamp()
public void setLastModifiedTime(Date lastModified)
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 usepublic static org.json.simple.JSONObject toJSONObject(List<? extends SLASummaryBean> slaSummaryList, String timeZoneId)
slaSummaryList
- sla summary list.timeZoneId
- time zone to use for dates in the JSON array.Copyright © 2014 Apache Software Foundation. All Rights Reserved.