public class V0JobServlet extends BaseJobServlet
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 |
---|
V0JobServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
changeJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to change a coordinator job
|
protected org.json.simple.JSONObject |
getCoordActionMissingDependencies(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method to get the coord action missing dependencies.
|
protected String |
getJMSTopicName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to get JMS topic name for a job
|
protected JsonBean |
getJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to get a job, either workflow or coordinator, in JsonBean representation
|
protected String |
getJobDefinition(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to get definition of a job, either workflow or coordinator
|
protected org.json.simple.JSONObject |
getJobsByParentId(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to get workflow job ids from the parent id
i.e.
|
protected String |
getJobStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method to get status for a job
|
protected org.json.simple.JSONObject |
ignoreJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected org.json.simple.JSONObject |
killJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to kill a job, either workflow or coordinator
|
protected org.json.simple.JSONObject |
reRunJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.hadoop.conf.Configuration conf)
abstract method to re-run a job, either workflow or coordinator
|
protected void |
resumeJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to resume a job, either workflow or coordinator
|
protected void |
startJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to start a job, either workflow or coordinator
|
protected void |
streamJobAuditLog(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
streamJobErrorLog(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to get and stream error log information of job, either workflow, coordinator or bundle
|
protected void |
streamJobGraph(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to create and stream image for runtime DAG -- workflow only
|
protected void |
streamJobLog(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to get and stream log information of job, either workflow or coordinator
|
protected void |
suspendJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to suspend a job, either workflow or coordinator
|
protected org.json.simple.JSONObject |
updateJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.hadoop.conf.Configuration conf)
Abstract method to Update coord job.
|
doGet, doPut, getWfActionByJobIdAndName
addCron, getContentType, getProxyUser, getResourceName, getUser, incrCounter, init, sendErrorResponse, sendJsonResponse, sendJsonResponse, service, setAllowSafeModeChanges, setLogInfo, startCron, stopCron, validateContentType, validateRestUrl
doDelete, doHead, doOptions, doPost, doTrace, getLastModified, service
public V0JobServlet()
protected void startJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected void resumeJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected void suspendJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected org.json.simple.JSONObject killJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected void changeJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected org.json.simple.JSONObject reRunJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.hadoop.conf.Configuration conf) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseconf
- the configuration to useXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected JsonBean getJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected String getJobDefinition(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected void streamJobLog(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected void streamJobErrorLog(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected void streamJobAuditLog(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
XServletException
IOException
protected void streamJobGraph(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected String getJMSTopicName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected org.json.simple.JSONObject getJobsByParentId(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- in case of any servlet errorIOException
- in case of any I/O errorprotected org.json.simple.JSONObject updateJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.hadoop.conf.Configuration conf) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseconf
- the ConfigurationXServletException
- the x servlet exceptionIOException
- Signals that an I/O exception has occurred.protected org.json.simple.JSONObject ignoreJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
XServletException
IOException
protected String getJobStatus(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- the x servlet exceptionIOException
- Signals that an I/O exception has occurred.protected org.json.simple.JSONObject getCoordActionMissingDependencies(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
request
- the requestresponse
- the responseXServletException
- the x servlet exceptionIOException
- Signals that an I/O exception has occurred.Copyright © 2018 Apache Software Foundation. All rights reserved.