Class MoveConfig

  • All Implemented Interfaces:
    JobConfig, PlanConfig, java.io.Serializable

    @ThreadSafe
    public final class MoveConfig
    extends java.lang.Object
    implements PlanConfig
    Configuration of a job moving a block.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      MoveConfig​(java.lang.String path, long blockId, java.lang.String workerHost, java.lang.String mediumType)
      Creates a new instance of MoveConfig.
    • Constructor Detail

      • MoveConfig

        public MoveConfig​(java.lang.String path,
                          long blockId,
                          java.lang.String workerHost,
                          java.lang.String mediumType)
        Creates a new instance of MoveConfig.
        Parameters:
        path - alluxio path involved in this move
        blockId - id of the block to move
        workerHost - host name of the worker
        mediumType - the medium type to move to
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface JobConfig
        Returns:
        the name of the job
      • affectedPaths

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

        public long getBlockId()
        Returns:
        the block ID for this job
      • getMediumType

        public java.lang.String getMediumType()
        Returns:
        the medium type of this move job
      • getWorkerHost

        public java.lang.String getWorkerHost()
        Returns:
        the worker host
      • 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