org.apache.hadoop.hdfs.server.datanode.web.resources
Class DatanodeWebHdfsMethods

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.datanode.web.resources.DatanodeWebHdfsMethods

public class DatanodeWebHdfsMethods
extends Object

Web-hdfs DataNode implementation.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
DatanodeWebHdfsMethods()
           
 
Method Summary
 javax.ws.rs.core.Response get(org.apache.hadoop.security.UserGroupInformation ugi, DelegationParam delegation, NamenodeRpcAddressParam namenodeRpcAddress, UriFsPathParam path, GetOpParam op, OffsetParam offset, LengthParam length, BufferSizeParam bufferSize)
          Handle HTTP GET request.
 javax.ws.rs.core.Response getRoot(org.apache.hadoop.security.UserGroupInformation ugi, DelegationParam delegation, NamenodeRpcAddressParam namenodeRpcAddress, GetOpParam op, OffsetParam offset, LengthParam length, BufferSizeParam bufferSize)
          Handle HTTP GET request for the root.
 javax.ws.rs.core.Response post(InputStream in, org.apache.hadoop.security.UserGroupInformation ugi, DelegationParam delegation, NamenodeRpcAddressParam namenodeRpcAddress, UriFsPathParam path, PostOpParam op, BufferSizeParam bufferSize)
          Handle HTTP POST request.
 javax.ws.rs.core.Response postRoot(InputStream in, org.apache.hadoop.security.UserGroupInformation ugi, DelegationParam delegation, NamenodeRpcAddressParam namenodeRpcAddress, PostOpParam op, BufferSizeParam bufferSize)
          Handle HTTP POST request for the root for the root.
 javax.ws.rs.core.Response put(InputStream in, org.apache.hadoop.security.UserGroupInformation ugi, DelegationParam delegation, NamenodeRpcAddressParam namenodeRpcAddress, UriFsPathParam path, PutOpParam op, PermissionParam permission, OverwriteParam overwrite, BufferSizeParam bufferSize, ReplicationParam replication, BlockSizeParam blockSize)
          Handle HTTP PUT request.
 javax.ws.rs.core.Response putRoot(InputStream in, org.apache.hadoop.security.UserGroupInformation ugi, DelegationParam delegation, NamenodeRpcAddressParam namenodeRpcAddress, PutOpParam op, PermissionParam permission, OverwriteParam overwrite, BufferSizeParam bufferSize, ReplicationParam replication, BlockSizeParam blockSize)
          Handle HTTP PUT request for the root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

DatanodeWebHdfsMethods

public DatanodeWebHdfsMethods()
Method Detail

putRoot

public javax.ws.rs.core.Response putRoot(InputStream in,
                                         @Context
                                         org.apache.hadoop.security.UserGroupInformation ugi,
                                         DelegationParam delegation,
                                         NamenodeRpcAddressParam namenodeRpcAddress,
                                         PutOpParam op,
                                         PermissionParam permission,
                                         OverwriteParam overwrite,
                                         BufferSizeParam bufferSize,
                                         ReplicationParam replication,
                                         BlockSizeParam blockSize)
                                  throws IOException,
                                         InterruptedException
Handle HTTP PUT request for the root.

Throws:
IOException
InterruptedException

put

public javax.ws.rs.core.Response put(InputStream in,
                                     @Context
                                     org.apache.hadoop.security.UserGroupInformation ugi,
                                     DelegationParam delegation,
                                     NamenodeRpcAddressParam namenodeRpcAddress,
                                     UriFsPathParam path,
                                     PutOpParam op,
                                     PermissionParam permission,
                                     OverwriteParam overwrite,
                                     BufferSizeParam bufferSize,
                                     ReplicationParam replication,
                                     BlockSizeParam blockSize)
                              throws IOException,
                                     InterruptedException
Handle HTTP PUT request.

Throws:
IOException
InterruptedException

postRoot

public javax.ws.rs.core.Response postRoot(InputStream in,
                                          @Context
                                          org.apache.hadoop.security.UserGroupInformation ugi,
                                          DelegationParam delegation,
                                          NamenodeRpcAddressParam namenodeRpcAddress,
                                          PostOpParam op,
                                          BufferSizeParam bufferSize)
                                   throws IOException,
                                          InterruptedException
Handle HTTP POST request for the root for the root.

Throws:
IOException
InterruptedException

post

public javax.ws.rs.core.Response post(InputStream in,
                                      @Context
                                      org.apache.hadoop.security.UserGroupInformation ugi,
                                      DelegationParam delegation,
                                      NamenodeRpcAddressParam namenodeRpcAddress,
                                      UriFsPathParam path,
                                      PostOpParam op,
                                      BufferSizeParam bufferSize)
                               throws IOException,
                                      InterruptedException
Handle HTTP POST request.

Throws:
IOException
InterruptedException

getRoot

public javax.ws.rs.core.Response getRoot(@Context
                                         org.apache.hadoop.security.UserGroupInformation ugi,
                                         DelegationParam delegation,
                                         NamenodeRpcAddressParam namenodeRpcAddress,
                                         GetOpParam op,
                                         OffsetParam offset,
                                         LengthParam length,
                                         BufferSizeParam bufferSize)
                                  throws IOException,
                                         InterruptedException
Handle HTTP GET request for the root.

Throws:
IOException
InterruptedException

get

public javax.ws.rs.core.Response get(@Context
                                     org.apache.hadoop.security.UserGroupInformation ugi,
                                     DelegationParam delegation,
                                     NamenodeRpcAddressParam namenodeRpcAddress,
                                     UriFsPathParam path,
                                     GetOpParam op,
                                     OffsetParam offset,
                                     LengthParam length,
                                     BufferSizeParam bufferSize)
                              throws IOException,
                                     InterruptedException
Handle HTTP GET request.

Throws:
IOException
InterruptedException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.