org.apache.oozie.client
Interface Job

All Known Subinterfaces:
BundleJob, CoordinatorJob

public interface Job

Interface that represents an Oozie Job.


Nested Class Summary
static class Job.Status
          Defines the possible status of an Oozie JOB.
 
Method Summary
 String getAcl()
          Return the workflow job group.
 String getAppName()
          Return the name of the Oozie application (from the application definition).
 String getAppPath()
          Return the path to the Oozie application.
 String getConf()
          Return the JOB configuration.
 String getConsoleUrl()
          Return the JOB console URL.
 Date getEndTime()
          Return the JOB end time.
 String getExternalId()
          Return externalId
 String getGroup()
          Deprecated. 
 String getId()
          Return the JOB ID.
 Date getPauseTime()
          Get pauseTime
 Date getStartTime()
          Return the JOB start time.
 Job.Status getStatus()
          Return the JOB status.
 String getUser()
          Return the JOB user owner.
 void resetPending()
          Set pending to
 void setPending()
          Set pending to true
 void setStatus(Job.Status status)
          Set the status of the job
 

Method Detail

getAppPath

String getAppPath()
Return the path to the Oozie application.

Returns:
the path to the Oozie application.

getAppName

String getAppName()
Return the name of the Oozie application (from the application definition).

Returns:
the name of the Oozie application.

getId

String getId()
Return the JOB ID.

Returns:
the JOB ID.

getConf

String getConf()
Return the JOB configuration.

Returns:
the JOB configuration.

getStatus

Job.Status getStatus()
Return the JOB status.

Returns:
the JOB status.

getUser

String getUser()
Return the JOB user owner.

Returns:
the JOB user owner.

getGroup

@Deprecated
String getGroup()
Deprecated. 

Return the JOB group.

Returns:
the JOB group.

getAcl

String getAcl()
Return the workflow job group.

Returns:
the workflow job group.

getConsoleUrl

String getConsoleUrl()
Return the JOB console URL.

Returns:
the JOB console URL.

getStartTime

Date getStartTime()
Return the JOB start time.

Returns:
the JOB start time.

getEndTime

Date getEndTime()
Return the JOB end time.

Returns:
the JOB end time.

setStatus

void setStatus(Job.Status status)
Set the status of the job

Parameters:
status -

setPending

void setPending()
Set pending to true


resetPending

void resetPending()
Set pending to


getPauseTime

Date getPauseTime()
Get pauseTime

Returns:
pauseTime

getExternalId

String getExternalId()
Return externalId

Returns:
externalId


Copyright © 2012 Apache Software Foundation. All Rights Reserved.