org.apache.hadoop.chukwa.util
Class TempFileUtil

java.lang.Object
  extended by org.apache.hadoop.chukwa.util.TempFileUtil

public class TempFileUtil
extends Object


Constructor Summary
TempFileUtil()
           
 
Method Summary
static File makeBinary(int length)
           
static File makeTestFile()
           
static File makeTestFile(File baseDir)
           
static File makeTestFile(String name, int size)
           
static File makeTestFile(String name, int size, File baseDir)
           
static void writeASinkFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fileSys, org.apache.hadoop.fs.Path dest, int chunks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempFileUtil

public TempFileUtil()
Method Detail

makeBinary

public static File makeBinary(int length)
                       throws IOException
Throws:
IOException

writeASinkFile

public static void writeASinkFile(org.apache.hadoop.conf.Configuration conf,
                                  org.apache.hadoop.fs.FileSystem fileSys,
                                  org.apache.hadoop.fs.Path dest,
                                  int chunks)
                           throws IOException
Throws:
IOException

makeTestFile

public static File makeTestFile(String name,
                                int size,
                                File baseDir)
                         throws IOException
Throws:
IOException

makeTestFile

public static File makeTestFile(String name,
                                int size)
                         throws IOException
Throws:
IOException

makeTestFile

public static File makeTestFile(File baseDir)
                         throws IOException
Throws:
IOException

makeTestFile

public static File makeTestFile()
                         throws IOException
Throws:
IOException


Copyright © ${year} The Apache Software Foundation