Package alluxio.cli

Class BasicCheckpoint

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Boolean>

    public class BasicCheckpoint
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Boolean>
    An example to show to how use Alluxio's API.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicCheckpoint​(java.lang.String fileFolder, int numFiles, alluxio.client.file.FileSystemContext fsContext)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean call()  
      static void main​(java.lang.String[] args)
      Example program for using checkpoints.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicCheckpoint

        public BasicCheckpoint​(java.lang.String fileFolder,
                               int numFiles,
                               alluxio.client.file.FileSystemContext fsContext)
        Parameters:
        fileFolder - folder to use for the files
        numFiles - the number of files
        fsContext - filesystem context to use for client operations
    • Method Detail

      • call

        public java.lang.Boolean call()
                               throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Boolean>
        Throws:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Example program for using checkpoints. Usage: java -cp <ALLUXIO-VERSION> alluxio.cli.BasicCheckpoint <FileFolder> <Files>
        Parameters:
        args - the folder for the files and the files to use
        Throws:
        java.io.IOException