org.apache.oozie.servlet
Class V1JobsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.oozie.servlet.JsonRestServlet
              extended by org.apache.oozie.servlet.BaseJobsServlet
                  extended by org.apache.oozie.servlet.V1JobsServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class V1JobsServlet
extends BaseJobsServlet

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.oozie.servlet.JsonRestServlet
JsonRestServlet.ParameterInfo, JsonRestServlet.ResourceInfo
 
Field Summary
 
Fields inherited from class org.apache.oozie.servlet.JsonRestServlet
AUDIT_ERROR_CODE, AUDIT_ERROR_MESSAGE, AUDIT_HTTP_STATUS_CODE, AUDIT_OPERATION, AUDIT_PARAM, AUTH_TOKEN, INSTRUMENTATION_GROUP, TEXT_UTF8, UNDEF, USER_NAME, XML_UTF8
 
Constructor Summary
V1JobsServlet()
           
 
Method Summary
protected  org.json.simple.JSONObject getJobIdForExternalId(javax.servlet.http.HttpServletRequest request, String externalId)
          v1 service implementation to get a JSONObject representation of a job from its external ID
protected  org.json.simple.JSONObject getJobs(javax.servlet.http.HttpServletRequest request)
          v1 service implementation to get a list of workflows, coordinators, or bundles, with filtering or interested windows embedded in the request object
protected  org.json.simple.JSONObject submitJob(javax.servlet.http.HttpServletRequest request, org.apache.hadoop.conf.Configuration conf)
          v1 service implementation to submit a job, either workflow or coordinator
 
Methods inherited from class org.apache.oozie.servlet.BaseJobsServlet
doGet, doPost
 
Methods inherited from class org.apache.oozie.servlet.JsonRestServlet
getContentType, getResourceName, getUser, init, sendErrorResponse, sendJsonResponse, sendJsonResponse, service, setAllowSafeModeChanges, setLogInfo, startCron, stopCron, validateContentType, validateRestUrl
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

V1JobsServlet

public V1JobsServlet()
Method Detail

submitJob

protected org.json.simple.JSONObject submitJob(javax.servlet.http.HttpServletRequest request,
                                               org.apache.hadoop.conf.Configuration conf)
                                        throws XServletException,
                                               IOException
v1 service implementation to submit a job, either workflow or coordinator

Returns:
JSONObject of job id
Throws:
XServletException
IOException

getJobIdForExternalId

protected org.json.simple.JSONObject getJobIdForExternalId(javax.servlet.http.HttpServletRequest request,
                                                           String externalId)
                                                    throws XServletException,
                                                           IOException
v1 service implementation to get a JSONObject representation of a job from its external ID

Returns:
JSONObject for the requested job
Throws:
XServletException
IOException

getJobs

protected org.json.simple.JSONObject getJobs(javax.servlet.http.HttpServletRequest request)
                                      throws XServletException,
                                             IOException
v1 service implementation to get a list of workflows, coordinators, or bundles, with filtering or interested windows embedded in the request object

Returns:
JSONObject of the requested jobs
Throws:
XServletException
IOException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.