public class V2JobServlet extends V1JobServlet
JsonRestServlet.ParameterInfo, JsonRestServlet.ResourceInfo
COORD_ACTIONS_DEFAULT_LENGTH
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 |
---|
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, suspendJob
doGet, doPut
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 V2JobServlet()
protected JsonBean getWorkflowJob(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException
V1JobServlet
getWorkflowJob
in class V1JobServlet
request
- servlet requestresponse
- servlet responseXServletException
protected JsonBean getWorkflowAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException
V1JobServlet
getWorkflowAction
in class V1JobServlet
request
- servlet requestresponse
- servlet responseXServletException
protected int getCoordinatorJobLength(int defaultLen, int len)
V1JobServlet
V1JobServlet.getCoordinatorJob(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
getCoordinatorJobLength
in class V1JobServlet
defaultLen
- The default lengthlen
- The requested lengthprotected String getJMSTopicName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
getJMSTopicName
in class V1JobServlet
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
getJobsByParentId
in class V1JobServlet
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
updateJob
in class V1JobServlet
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
ignoreJob
in class V1JobServlet
request
- request objectresponse
- response objectXServletException
IOException
protected void slaEnableAlert(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 void slaDisableAlert(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 void slaChange(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 String getJobStatus(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
BaseJobServlet
getJobStatus
in class V1JobServlet
request
- 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
BaseJobServlet
streamJobErrorLog
in class V1JobServlet
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
streamJobAuditLog
in class V1JobServlet
XServletException
IOException
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.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
BaseJobServlet
getWfActionByJobIdAndName
in class 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.