Package alluxio.job.plan.replicate
Class EvictConfig
- java.lang.Object
-
- alluxio.job.plan.replicate.EvictConfig
-
- All Implemented Interfaces:
JobConfig,PlanConfig,java.io.Serializable
@ThreadSafe public final class EvictConfig extends java.lang.Object implements PlanConfig
Configuration of a job evicting a block.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description EvictConfig(java.lang.String path, long blockId, int replicas)Creates a new instance ofEvictConfig.
-
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()intgetReplicas()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EvictConfig
public EvictConfig(java.lang.String path, long blockId, int replicas)Creates a new instance ofEvictConfig.- Parameters:
path- alluxio path involved in this evictionblockId- id of the block to evictreplicas- number of replicas to evict
-
-
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 block ID for this job
-
getReplicas
public int getReplicas()
- Returns:
- how many existing blocks to evict
-
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
-
-