Class SetReplicaConfig

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

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

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

      Constructors 
      Constructor Description
      SetReplicaConfig​(java.lang.String path, long blockId, int replicas)
      Creates a new instance of SetReplicaConfig.
    • Constructor Detail

      • SetReplicaConfig

        public SetReplicaConfig​(java.lang.String path,
                                long blockId,
                                int replicas)
        Creates a new instance of SetReplicaConfig.
        Parameters:
        path - Alluxio path of the file whose block to replicate
        blockId - id of the block to replicate
        replicas - number of additional replicas to create
    • 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 id of the block to replicate
      • getPath

        public java.lang.String getPath()
        Returns:
        the path of the file whose block to replicate
      • getReplicas

        public int getReplicas()
        Returns:
        number of additional replicas to create
      • 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