Class MigrateCliConfig

  • All Implemented Interfaces:
    CliConfig, CmdConfig, java.io.Serializable

    @ThreadSafe
    public class MigrateCliConfig
    extends java.lang.Object
    implements CliConfig
    A config for a MigrateCli job.
    See Also:
    Serialized Form
    • Constructor Detail

      • MigrateCliConfig

        public MigrateCliConfig​(java.lang.String source,
                                java.lang.String dst,
                                alluxio.client.WriteType writeType,
                                boolean overwrite,
                                int batchSize)
        Parameters:
        source - the source path
        dst - the destination path
        writeType - the Alluxio write type with which to write the migrated file; a null value means to use the default write type from the Alluxio configuration
        overwrite - whether an existing file should be overwritten; if the source and destination are directories, the contents of the directories will be merged with common files overwritten by the source
        batchSize - batchSize to run one job
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface CmdConfig
        Returns:
        name of the Cmd job
      • getOperationType

        public alluxio.grpc.OperationType getOperationType()
        Specified by:
        getOperationType in interface CmdConfig
        Returns:
        OperationType of the Cmd job
      • affectedPaths

        public java.util.Collection<java.lang.String> affectedPaths()
        Specified by:
        affectedPaths in interface CmdConfig
        Returns:
        list of affected paths
      • getSource

        public java.lang.String getSource()
        Returns:
        the source path
      • getDestination

        public java.lang.String getDestination()
        Returns:
        the destination path
      • getWriteType

        public alluxio.client.WriteType getWriteType()
        Returns:
        the writeType
      • getOverWrite

        public boolean getOverWrite()
        Returns:
        the overWrite
      • getBatchSize

        public int getBatchSize()
        Returns:
        the batch size
      • isOverwrite

        public boolean isOverwrite()
        Returns:
        whether to overwrite a file at the destination if it exists
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object