org.apache.oozie.servlet
Class BaseAdminServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.oozie.servlet.JsonRestServlet
org.apache.oozie.servlet.BaseAdminServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- V0AdminServlet, V1AdminServlet
public abstract class BaseAdminServlet
- extends JsonRestServlet
- See Also:
- Serialized Form
Fields inherited from class org.apache.oozie.servlet.JsonRestServlet |
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 |
Method Summary |
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)
Change safemode state. |
protected abstract void |
getQueueDump(org.json.simple.JSONObject json)
|
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)
|
Methods inherited from class org.apache.oozie.servlet.JsonRestServlet |
getContentType, getResourceName, getUser, init, sendErrorResponse, sendJsonResponse, sendJsonResponse, service, setAllowSafeModeChanges, setLogInfo, startCron, stopCron, validateContentType, validateRestUrl |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modeTag
protected String modeTag
BaseAdminServlet
public BaseAdminServlet(String instrumentationName,
JsonRestServlet.ResourceInfo[] RESOURCES_INFO)
doPut
protected void doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Change safemode state.
- Overrides:
doPut
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Return safemode state, instrumentation, configuration, osEnv or
javaSysProps
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
populateOozieMode
protected abstract void populateOozieMode(org.json.simple.JSONObject json)
setOozieMode
protected abstract void setOozieMode(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String resourceName)
throws XServletException
- Throws:
XServletException
getQueueDump
protected abstract void getQueueDump(org.json.simple.JSONObject json)
throws XServletException
- Throws:
XServletException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.