|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hadoop.dfs.FileDataServlet
public class FileDataServlet
Redirect queries about the hosted filesystem to an appropriate datanode.
HftpFileSystem,
Serialized Form| Constructor Summary | |
|---|---|
FileDataServlet()
|
|
| Method Summary | |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Service a GET request as described below. |
protected static DatanodeInfo |
pickSrcDatanode(org.apache.hadoop.dfs.DFSFileInfo i,
NameNode nn)
Select a datanode to service this request. |
| 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 Detail |
|---|
public FileDataServlet()
| Method Detail |
|---|
protected static DatanodeInfo pickSrcDatanode(org.apache.hadoop.dfs.DFSFileInfo i,
NameNode nn)
throws IOException
IOException
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
GET http://<nn>:<port>/data[/<path>] HTTP/1.1
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||