This project has retired. For details please refer to its
Attic page .
V0JobsServlet (Apache Oozie Core 3.3.2 API)
org.apache.oozie.servlet
Class V0JobsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.oozie.servlet.JsonRestServlet
org.apache.oozie.servlet.BaseJobsServlet
org.apache.oozie.servlet.V0JobsServlet
All Implemented Interfaces: Serializable , javax.servlet.Servlet, javax.servlet.ServletConfig
public class V0JobsServlet extends BaseJobsServlet
See Also: Serialized Form
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
Method Summary
protected org.json.simple.JSONObject
getJobIdForExternalId (javax.servlet.http.HttpServletRequest request,
String externalId)
v0 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)
v0 service implementation to get a list of workflows, 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)
v0 service implementation to submit a workflow job
Methods inherited from class org.apache.oozie.servlet.JsonRestServlet
getAuthToken , 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
V0JobsServlet
public V0JobsServlet ()
submitJob
protected org.json.simple.JSONObject submitJob (javax.servlet.http.HttpServletRequest request,
org.apache.hadoop.conf.Configuration conf)
throws XServletException ,
IOException
v0 service implementation to submit a workflow job
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
v0 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
v0 service implementation to get a list of workflows, 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.