public class V2JobServlet extends V1JobServlet
JsonRestServlet.ParameterInfo, JsonRestServlet.ResourceInfoCOORD_ACTIONS_DEFAULT_LENGTHAUDIT_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 |
|---|
V2JobServlet() |
| Modifier and Type | Method and Description |
|---|---|
BaseEngine |
getBaseEngine(String jobId,
String user)
Gets the base engine based on jobId.
|
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 int |
getCoordinatorJobLength(int defaultLen,
int len)
Given the requested length and the default length, determine how many coordinator jobs to return.
|
protected String |
getJMSTopicName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
abstract method to get JMS topic name for a job
|
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 |
getWfActionByJobIdAndName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
get wf actions by name in coordinator job
|
protected JsonBean |
getWorkflowAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get wf action info
|
protected JsonBean |
getWorkflowJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get workflow job
|
protected org.json.simple.JSONObject |
ignoreJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ignore a coordinator job
|
protected void |
slaChange(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method to change SLA definition.
|
protected void |
slaDisableAlert(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method to disable SLA alert.
|
protected void |
slaEnableAlert(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method to enable SLA alert.
|
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 org.json.simple.JSONObject |
updateJob(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.hadoop.conf.Configuration conf)
Update coord job.
|
changeJob, getCoordinatorJob, getJob, getJobDefinition, getWorkflowActionBean, getWorkflowJobBean, killJob, reRunJob, resumeJob, startJob, streamJobGraph, streamJobLog, suspendJobdoGet, doPutaddCron, getContentType, getProxyUser, getResourceName, getUser, incrCounter, init, sendErrorResponse, sendJsonResponse, sendJsonResponse, service, setAllowSafeModeChanges, setLogInfo, startCron, stopCron, validateContentType, validateRestUrldoDelete, doHead, doOptions, doPost, doTrace, getLastModified, servicepublic V2JobServlet()
protected JsonBean getWorkflowJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException
V1JobServletgetWorkflowJob in class V1JobServletrequest - servlet requestresponse - servlet responseXServletExceptionprotected JsonBean getWorkflowAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException
V1JobServletgetWorkflowAction in class V1JobServletrequest - servlet requestresponse - servlet responseXServletExceptionprotected int getCoordinatorJobLength(int defaultLen, int len)
V1JobServletV1JobServlet.getCoordinatorJob(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)getCoordinatorJobLength in class V1JobServletdefaultLen - The default lengthlen - The requested lengthprotected String getJMSTopicName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletgetJMSTopicName in class V1JobServletrequest - 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
BaseJobServletgetJobsByParentId in class V1JobServletrequest - 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
updateJob in class V1JobServletrequest - 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
ignoreJob in class V1JobServletrequest - request objectresponse - response objectXServletExceptionIOExceptionprotected void slaEnableAlert(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletrequest - the requestresponse - the responseXServletException - the x servlet exceptionIOException - Signals that an I/O exception has occurred.protected void slaDisableAlert(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletrequest - the requestresponse - the responseXServletException - the x servlet exceptionIOException - Signals that an I/O exception has occurred.protected void slaChange(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletrequest - the requestresponse - the responseXServletException - the x servlet exceptionIOException - Signals that an I/O exception has occurred.protected String getJobStatus(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletgetJobStatus in class V1JobServletrequest - the requestresponse - the responseXServletException - the x servlet exceptionIOException - Signals that an I/O exception has occurred.protected void streamJobErrorLog(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletstreamJobErrorLog in class V1JobServletrequest - 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
streamJobAuditLog in class V1JobServletXServletExceptionIOExceptionprotected org.json.simple.JSONObject getCoordActionMissingDependencies(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletrequest - the requestresponse - the responseXServletException - the x servlet exceptionIOException - Signals that an I/O exception has occurred.public final BaseEngine getBaseEngine(String jobId, String user)
jobId - the jobIduser - the userprotected org.json.simple.JSONObject getWfActionByJobIdAndName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServletgetWfActionByJobIdAndName in class BaseJobServletrequest - the requestresponse - the responseXServletException - the x servlet exceptionIOException - Signals that an I/O exception has occurred.Copyright © 2018 Apache Software Foundation. All rights reserved.