Class FSOperations

java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations

@Private public final class FSOperations extends Object
FileSystem operation executors used by HttpFSServer.
  • Method Details

    • setBufferSize

      public static void setBufferSize(org.apache.hadoop.conf.Configuration conf)
      Set the buffer size. The size is set during the initialization of HttpFSServerWebApp.
      Parameters:
      conf - the configuration to get the bufferSize
    • copyBytes

      public static long copyBytes(InputStream in, OutputStream out) throws IOException
      These copyBytes methods combines the two different flavors used originally. One with length and another one with buffer size. In this impl, buffer size is determined internally, which is a singleton normally set during initialization.
      Parameters:
      in - the inputStream
      out - the outputStream
      Returns:
      the totalBytes
      Throws:
      IOException - the exception to be thrown.
    • copyBytes

      public static long copyBytes(InputStream in, OutputStream out, long count) throws IOException
      Throws:
      IOException