Package alluxio.job.plan.replicate
Interface ReplicationHandler
-
- All Known Implementing Classes:
DefaultReplicationHandler
public interface ReplicationHandlerInterface for adjusting the replication level of blocks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longevict(alluxio.AlluxioURI uri, long blockId, int numReplicas)Decreases the block replication level by a target number of replicas.longmigrate(alluxio.AlluxioURI uri, long blockId, java.lang.String workerHost, java.lang.String mediumType)Migrate blocks to the correctly pinned locations.longreplicate(alluxio.AlluxioURI uri, long blockId, int numReplicas)Increases the block replication level by a target number of replicas.
-
-
-
Method Detail
-
evict
long evict(alluxio.AlluxioURI uri, long blockId, int numReplicas) throws alluxio.exception.AlluxioException, java.io.IOExceptionDecreases the block replication level by a target number of replicas.- Parameters:
uri- URI of the file the block belongs toblockId- ID of the blocknumReplicas- how many replicas to remove- Returns:
- the ID of the replicate job
- Throws:
alluxio.exception.AlluxioException- if an Alluxio error is encounteredjava.io.IOException- if a non-Alluxio error is encountered
-
replicate
long replicate(alluxio.AlluxioURI uri, long blockId, int numReplicas) throws alluxio.exception.AlluxioException, java.io.IOExceptionIncreases the block replication level by a target number of replicas.- Parameters:
uri- URI of the file the block belongs toblockId- ID of the blocknumReplicas- how many replicas to add- Returns:
- the ID of the replicate job
- Throws:
alluxio.exception.AlluxioException- if an Alluxio error is encounteredjava.io.IOException- if a non-Alluxio error is encountered
-
migrate
long migrate(alluxio.AlluxioURI uri, long blockId, java.lang.String workerHost, java.lang.String mediumType) throws alluxio.exception.AlluxioException, java.io.IOExceptionMigrate blocks to the correctly pinned locations.- Parameters:
uri- URI of the file the block belongs toblockId- ID of the blockworkerHost- worker host this block is located atmediumType- medium type to migrate this block to- Returns:
- the ID of the replicate job
- Throws:
alluxio.exception.AlluxioException- if an Alluxio error is encounteredjava.io.IOException- if a non-Alluxio error is encountered
-
-