org.apache.oozie.servlet
Class BaseJobServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.oozie.servlet.JsonRestServlet
              extended by org.apache.oozie.servlet.BaseJobServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
V0JobServlet, V1JobServlet

public abstract class BaseJobServlet
extends JsonRestServlet

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.oozie.servlet.JsonRestServlet
JsonRestServlet.ParameterInfo, JsonRestServlet.ResourceInfo
 
Field Summary
 
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
 
Constructor Summary
BaseJobServlet(String instrumentationName)
           
 
Method Summary
 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.
 
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, doPost, 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
 

Constructor Detail

BaseJobServlet

public BaseJobServlet(String instrumentationName)
Method Detail

doPut

protected void doPut(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Perform various job related actions - start, suspend, resume, kill, etc.

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 information about jobs.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.