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()
           
 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.
 
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)

getNominalTime

public Date getNominalTime()

setNominalTime

public void setNominalTime(Date nominalTime)

getExpectedStart

public Date getExpectedStart()

setExpectedStart

public void setExpectedStart(Date expectedStart)

getExpectedEnd

public Date getExpectedEnd()

setExpectedEnd

public void setExpectedEnd(Date expectedEnd)

getExpectedDuration

public long getExpectedDuration()

setExpectedDuration

public void setExpectedDuration(long expectedDuration)

getActualStart

public Date getActualStart()

setActualStart

public void setActualStart(Date actualStart)

getActualEnd

public Date getActualEnd()

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()

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 © 2013 Apache Software Foundation. All Rights Reserved.