public abstract class BaseJobServlet extends JsonRestServlet
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 |
---|
BaseJobServlet(String instrumentationName) |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Return information about jobs.
|
protected void |
doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Perform various job related actions - start, suspend, resume, kill, etc.
|
protected org.json.simple.JSONObject |
getWfActionByJobIdAndName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
get wf actions by name in coordinator job
|
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 BaseJobServlet(String instrumentationName)
protected void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPut
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected org.json.simple.JSONObject getWfActionByJobIdAndName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws XServletException, IOException
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.