Package alluxio.job.plan.replicate
Class ReplicateConfig
- java.lang.Object
-
- alluxio.job.plan.replicate.ReplicateConfig
-
- All Implemented Interfaces:
JobConfig,PlanConfig,java.io.Serializable
@ThreadSafe public final class ReplicateConfig 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.StringNAME
-
Constructor Summary
Constructors Constructor Description ReplicateConfig(java.lang.String path, long blockId, int replicas)Creates a new instance ofReplicateConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>affectedPaths()booleanequals(java.lang.Object obj)longgetBlockId()java.lang.StringgetName()java.lang.StringgetPath()intgetReplicas()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplicateConfig
public ReplicateConfig(java.lang.String path, long blockId, int replicas)Creates a new instance ofReplicateConfig.- Parameters:
path- Alluxio path of the file whose block to replicateblockId- id of the block to replicatereplicas- number of additional replicas to create
-
-
Method Detail
-
getName
public java.lang.String getName()
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfaceJobConfig- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-