Class PersistCmdConfig

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

    @ThreadSafe
    public class PersistCmdConfig
    extends java.lang.Object
    implements CliConfig
    A Cmd config for System Trigger job.
    See Also:
    Serialized Form
    • Constructor Detail

      • PersistCmdConfig

        public PersistCmdConfig​(java.lang.String filePath,
                                long mountId,
                                boolean overwrite,
                                java.lang.String ufsPath)
        Creates a new instance of PersistCmdConfig.
        Parameters:
        filePath - the Alluxio path of the file to persist
        mountId - the mount ID for the UFS path to persist the file to
        overwrite - flag of overwriting the existing file in UFS or not
        ufsPath - the UFS path to persist the file to
    • 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
      • getFilePath

        public java.lang.String getFilePath()
        Returns:
        the file path
      • getMountId

        public long getMountId()
        Returns:
        the mount ID
      • getUfsPath

        public java.lang.String getUfsPath()
        Returns:
        the UFS path
      • isOverwrite

        public boolean isOverwrite()
        Returns:
        flag of overwriting the existing file in under storage or not
      • 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
      • affectedPaths

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

        public PersistConfig toPersistConfig()
        Convert to PersistConfig.
        Returns:
        a PersistConfig