public abstract class BaseAdminServlet extends JsonRestServlet
JsonRestServlet.ParameterInfo, JsonRestServlet.ResourceInfo| Modifier and Type | Field and Description |
|---|---|
protected String |
modeTag |
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 |
|---|
BaseAdminServlet(String instrumentationName,
JsonRestServlet.ResourceInfo[] RESOURCES_INFO) |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Return safemode state, instrumentation, configuration, osEnv or
javaSysProps
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Oozie admin PUT request for
change oozie system mode
admin purge command
|
protected abstract Map<String,String> |
getOozieURLs() |
protected abstract void |
getQueueDump(org.json.simple.JSONObject json) |
protected abstract void |
populateOozieMode(org.json.simple.JSONObject json) |
protected void |
sendInstrumentationResponse(javax.servlet.http.HttpServletResponse response,
Instrumentation instr) |
protected abstract void |
sendMetricsResponse(javax.servlet.http.HttpServletResponse response) |
protected abstract void |
setOozieMode(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String resourceName) |
void |
updateShareLib(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Update share lib.
|
addCron, getContentType, getProxyUser, getResourceName, getUser, incrCounter, init, sendErrorResponse, sendJsonResponse, sendJsonResponse, service, setAllowSafeModeChanges, setLogInfo, startCron, stopCron, validateContentType, validateRestUrldoDelete, doHead, doOptions, doTrace, getLastModified, servicepublic BaseAdminServlet(String instrumentationName, JsonRestServlet.ResourceInfo[] RESOURCES_INFO)
protected void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPut in class javax.servlet.http.HttpServletrequest - http requestresponse - http responsejavax.servlet.ServletException - thrown if any servlet errorIOException - thrown if any I/O errorpublic void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic void updateShareLib(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request - the requestresponse - the responseIOException - Signals that an I/O exception has occurred.protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected abstract void populateOozieMode(org.json.simple.JSONObject json)
protected abstract void setOozieMode(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String resourceName) throws XServletException
XServletExceptionprotected abstract void getQueueDump(org.json.simple.JSONObject json) throws XServletException
XServletExceptionprotected void sendInstrumentationResponse(javax.servlet.http.HttpServletResponse response, Instrumentation instr) throws IOException, XServletException
IOExceptionXServletExceptionprotected abstract Map<String,String> getOozieURLs() throws XServletException
XServletExceptionprotected abstract void sendMetricsResponse(javax.servlet.http.HttpServletResponse response) throws IOException, XServletException
IOExceptionXServletExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.