public class V1JobsServlet extends BaseJobsServlet
JsonRestServlet.ParameterInfo, JsonRestServlet.ResourceInfo
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 and Description |
---|
V1JobsServlet() |
Modifier and Type | Method and Description |
---|---|
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 |
killJobs(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
service implementation to bulk kill jobs
|
protected org.json.simple.JSONObject |
resumeJobs(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
service implementation to bulk resume jobs
|
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
|
protected org.json.simple.JSONObject |
suspendJobs(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
service implementation to bulk suspend jobs
|
doGet, doPost, doPut
addCron, getContentType, getProxyUser, getResourceName, getUser, incrCounter, init, sendErrorResponse, sendJsonResponse, sendJsonResponse, service, setAllowSafeModeChanges, setLogInfo, startCron, stopCron, validateContentType, validateRestUrl
doDelete, doHead, doOptions, doTrace, getLastModified, service
public V1JobsServlet()
protected org.json.simple.JSONObject submitJob(javax.servlet.http.HttpServletRequest request, org.apache.hadoop.conf.Configuration conf) throws XServletException, IOException
XServletException
IOException
protected org.json.simple.JSONObject getJobIdForExternalId(javax.servlet.http.HttpServletRequest request, String externalId) throws XServletException, IOException
XServletException
IOException
protected org.json.simple.JSONObject getJobs(javax.servlet.http.HttpServletRequest request) throws XServletException, IOException
XServletException
IOException
protected org.json.simple.JSONObject killJobs(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
request
- response
- XServletException
IOException
protected org.json.simple.JSONObject suspendJobs(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
request
- response
- XServletException
IOException
protected org.json.simple.JSONObject resumeJobs(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
request
- response
- XServletException
IOException
Copyright © 2018 Apache Software Foundation. All rights reserved.