Package alluxio.cli

Class BasicOperations

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

    @ThreadSafe
    public class BasicOperations
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Boolean>
    Example to show the basic operations of Alluxio.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicOperations​(alluxio.AlluxioURI filePath, alluxio.client.ReadType readType, alluxio.client.WriteType writeType, alluxio.client.file.FileSystemContext fsContext, alluxio.grpc.WorkerNetAddress workerNetAddress)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean call()  
      • Methods inherited from class java.lang.Object

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

      • BasicOperations

        public BasicOperations​(alluxio.AlluxioURI filePath,
                               alluxio.client.ReadType readType,
                               alluxio.client.WriteType writeType,
                               alluxio.client.file.FileSystemContext fsContext,
                               @Nullable
                               alluxio.grpc.WorkerNetAddress workerNetAddress)
        Parameters:
        filePath - the path for the files
        readType - the ReadPType
        writeType - the WritePType
        fsContext - the FileSystemContext to use for client operations
        workerNetAddress - if not null, the worker address the file data will be written into
    • 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