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, validateRestUrl
doDelete, doHead, doOptions, doTrace, getLastModified, service
public 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.HttpServlet
request
- 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.HttpServlet
javax.servlet.ServletException
IOException
public 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.HttpServlet
javax.servlet.ServletException
IOException
protected 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
XServletException
protected abstract void getQueueDump(org.json.simple.JSONObject json) throws XServletException
XServletException
protected void sendInstrumentationResponse(javax.servlet.http.HttpServletResponse response, Instrumentation instr) throws IOException, XServletException
IOException
XServletException
protected abstract Map<String,String> getOozieURLs() throws XServletException
XServletException
protected abstract void sendMetricsResponse(javax.servlet.http.HttpServletResponse response) throws IOException, XServletException
IOException
XServletException
Copyright © 2018 Apache Software Foundation. All rights reserved.