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
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildPath(String journalId, long segmentTxId, NamespaceInfo nsInfo, boolean inProgressOk) voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected booleanisValidRequestor(javax.servlet.http.HttpServletRequest request, org.apache.hadoop.conf.Configuration conf) Methods inherited from class org.apache.hadoop.hdfs.server.namenode.DfsServlet
getUGIMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
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:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
buildPath
public static String buildPath(String journalId, long segmentTxId, NamespaceInfo nsInfo, boolean inProgressOk)
-