org.apache.oozie.sla
Class SLASummaryBean

java.lang.Object
  extended by org.apache.oozie.sla.SLASummaryBean
All Implemented Interfaces:
JsonBean

@Entity
public class SLASummaryBean
extends Object
implements JsonBean


Constructor Summary
SLASummaryBean()
           
SLASummaryBean(SLACalcStatus slaCalc)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLASummaryBean

public SLASummaryBean()

SLASummaryBean

public SLASummaryBean(SLACalcStatus slaCalc)
Method Detail

getId

public String getId()

setId

public void setId(String jobId)

getParentId

public String getParentId()

setParentId

public void setParentId(String parentId)

getCreatedTimestamp

public Timestamp getCreatedTimestamp()

setCreatedTimestamp

public void setCreatedTimestamp(Timestamp createdTime)

getCreatedTime

public Date getCreatedTime()

setCreatedTime

public void setCreatedTime(Date createdTime)

getNominalTime

public Date getNominalTime()

getNominalTimestamp

public Timestamp getNominalTimestamp()

setNominalTime

public void setNominalTime(Date nominalTime)

getExpectedStart

public Date getExpectedStart()

getExpectedStartTimestamp

public Timestamp getExpectedStartTimestamp()

setExpectedStart

public void setExpectedStart(Date expectedStart)

getExpectedEnd

public Date getExpectedEnd()

getExpectedEndTimestamp

public Timestamp getExpectedEndTimestamp()

setExpectedEnd

public void setExpectedEnd(Date expectedEnd)

getExpectedDuration

public long getExpectedDuration()

setExpectedDuration

public void setExpectedDuration(long expectedDuration)

getActualStart

public Date getActualStart()

getActualStartTimestamp

public Timestamp getActualStartTimestamp()

setActualStart

public void setActualStart(Date actualStart)

getActualEnd

public Date getActualEnd()

getActualEndTimestamp

public Timestamp getActualEndTimestamp()

setActualEnd

public void setActualEnd(Date actualEnd)

getActualDuration

public long getActualDuration()

setActualDuration

public void setActualDuration(long actualDuration)

getJobStatus

public String getJobStatus()

setJobStatus

public void setJobStatus(String status)

getEventStatus

public org.apache.oozie.client.event.SLAEvent.EventStatus getEventStatus()

setEventStatus

public void setEventStatus(org.apache.oozie.client.event.SLAEvent.EventStatus eventStatus)

getSLAStatus

public org.apache.oozie.client.event.SLAEvent.SLAStatus getSLAStatus()

getSLAStatusString

public String getSLAStatusString()

getEventStatusString

public String getEventStatusString()

setSLAStatus

public void setSLAStatus(org.apache.oozie.client.event.SLAEvent.SLAStatus stage)

getUser

public String getUser()

setUser

public void setUser(String user)

getAppName

public String getAppName()

setAppName

public void setAppName(String appName)

getAppType

public org.apache.oozie.AppType getAppType()

setAppType

public void setAppType(org.apache.oozie.AppType appType)

getEventProcessed

public byte getEventProcessed()

setEventProcessed

public void setEventProcessed(int eventProcessed)

getLastModifiedTime

public Date getLastModifiedTime()

getLastModifiedTimestamp

public Timestamp getLastModifiedTimestamp()

setLastModifiedTime

public void setLastModifiedTime(Date lastModified)

toJSONObject

public org.json.simple.JSONObject toJSONObject()
Description copied from interface: JsonBean
Return the JSONObject for the bean with GMT time zone.

Specified by:
toJSONObject in interface JsonBean
Returns:
the JSONObject for the bean with GMT time zone.

toJSONObject

public org.json.simple.JSONObject toJSONObject(String timeZoneId)
Description copied from interface: JsonBean
Return the JSONObject for the bean with the given time zone.

Specified by:
toJSONObject in interface JsonBean
Parameters:
timeZoneId - the time zone to use
Returns:
the JSONObject for the bean with the given time zone.

toJSONObject

public static org.json.simple.JSONObject toJSONObject(List<? extends SLASummaryBean> slaSummaryList,
                                                      String timeZoneId)
Convert a sla summary list into a json object.

Parameters:
slaSummaryList - sla summary list.
timeZoneId - time zone to use for dates in the JSON array.
Returns:
the corresponding JSON object.


Copyright © 2015 Apache Software Foundation. All Rights Reserved.