@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() |
Date |
getActualStart() |
String |
getAppName() |
org.apache.oozie.AppType |
getAppType() |
byte |
getEventProcessed() |
org.apache.oozie.client.event.SLAEvent.EventStatus |
getEventStatus() |
String |
getEventStatusString() |
long |
getExpectedDuration() |
Date |
getExpectedEnd() |
Date |
getExpectedStart() |
String |
getId() |
String |
getJobStatus() |
Date |
getLastModifiedTime() |
Date |
getNominalTime() |
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 |
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 Date getNominalTime()
public void setNominalTime(Date nominalTime)
public Date getExpectedStart()
public void setExpectedStart(Date expectedStart)
public Date getExpectedEnd()
public void setExpectedEnd(Date expectedEnd)
public long getExpectedDuration()
public void setExpectedDuration(long expectedDuration)
public Date getActualStart()
public void setActualStart(Date actualStart)
public Date getActualEnd()
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 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 © 2015 Apache Software Foundation. All Rights Reserved.