org.apache.oozie.client.event
Class JobEvent

java.lang.Object
  extended by org.apache.oozie.client.event.Event
      extended by org.apache.oozie.client.event.JobEvent
All Implemented Interfaces:
Serializable

public abstract class JobEvent
extends Event
implements Serializable

An abstract implementation of the Event interface, related to notification events after job status changes

See Also:
Serialized Form

Nested Class Summary
static class JobEvent.EventStatus
          Coarse-grained status of the job event
 
Nested classes/interfaces inherited from class org.apache.oozie.client.event.Event
Event.MessageType
 
Field Summary
 
Fields inherited from class org.apache.oozie.client.event.Event
msgType
 
Constructor Summary
JobEvent(String id, String parentId, String user, AppType appType, String appName)
           
 
Method Summary
 String getAppName()
          Get the app-name of the job generating this event
 AppType getAppType()
          Get the AppType of the event
 Date getEndTime()
           
 JobEvent.EventStatus getEventStatus()
          Get the coarse status
 String getId()
           
 String getParentId()
           
 Date getStartTime()
           
 String getUser()
          Get user name
 void setAppName(String name)
           
 void setAppType(AppType type)
           
 void setEndTime(Date time)
           
 void setEventStatus(JobEvent.EventStatus eStatus)
           
 void setId(String id)
           
 void setParentId(String id)
           
 void setStartTime(Date time)
           
 void setUser(String euser)
           
 String toString()
           
 
Methods inherited from class org.apache.oozie.client.event.Event
getMsgType, setMsgType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobEvent

public JobEvent(String id,
                String parentId,
                String user,
                AppType appType,
                String appName)
Method Detail

getId

public String getId()

setId

public void setId(String id)

getParentId

public String getParentId()

setParentId

public void setParentId(String id)

getAppType

public AppType getAppType()
Get the AppType of the event

Returns:
AppType

setAppType

public void setAppType(AppType type)

getAppName

public String getAppName()
Get the app-name of the job generating this event

Returns:
String app-name

setAppName

public void setAppName(String name)

getUser

public String getUser()
Get user name

Returns:
user

setUser

public void setUser(String euser)

getEventStatus

public JobEvent.EventStatus getEventStatus()
Get the coarse status

Returns:
EventStatus

setEventStatus

public void setEventStatus(JobEvent.EventStatus eStatus)

getStartTime

public Date getStartTime()

setStartTime

public void setStartTime(Date time)

getEndTime

public Date getEndTime()

setEndTime

public void setEndTime(Date time)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.