Class GetJournalEditServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hadoop.hdfs.server.namenode.DfsServlet
org.apache.hadoop.hdfs.qjournal.server.GetJournalEditServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@Private public class GetJournalEditServlet extends DfsServlet
This servlet is used in two cases:
  • The QuorumJournalManager, when reading edits, fetches the edit streams from the journal nodes.
  • During edits synchronization, one journal node will fetch edits from another journal node.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    buildPath(String journalId, long segmentTxId, NamespaceInfo nsInfo, boolean inProgressOk)
     
    void
    doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected boolean
    isValidRequestor(javax.servlet.http.HttpServletRequest request, org.apache.hadoop.conf.Configuration conf)
     

    Methods inherited from class org.apache.hadoop.hdfs.server.namenode.DfsServlet

    getUGI

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GetJournalEditServlet

      public GetJournalEditServlet()
  • Method Details

    • isValidRequestor

      protected boolean isValidRequestor(javax.servlet.http.HttpServletRequest request, org.apache.hadoop.conf.Configuration conf) throws IOException
      Throws:
      IOException
    • doGet

      public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • buildPath

      public static String buildPath(String journalId, long segmentTxId, NamespaceInfo nsInfo, boolean inProgressOk)