public interface ReplicationHandler
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Long> |
findJobs(java.lang.String jobName,
java.util.Set<Status> statusList) |
Status |
getJobStatus(long jobId) |
long |
migrate(AlluxioURI uri,
long blockId,
java.lang.String workerHost,
java.lang.String mediumType)
Migrate blocks to the correctly pinned locations.
|
long |
setReplica(AlluxioURI uri,
long blockId,
int numReplicas)
Set the block replication level by a target number of replicas.
|
Status getJobStatus(long jobId) throws java.io.IOException
jobId - the job id returned by evict, replicate, or migratejava.io.IOException - if a non-Alluxio error is encounteredjava.util.List<java.lang.Long> findJobs(java.lang.String jobName,
java.util.Set<Status> statusList)
throws java.io.IOException
jobName - name of the jobstatusList - job statusjava.io.IOException - if a non-Alluxio error is encounteredlong setReplica(AlluxioURI uri, long blockId, int numReplicas) throws AlluxioException, java.io.IOException
uri - URI of the file the block belongs toblockId - ID of the blocknumReplicas - how many replicas to addAlluxioException - if an Alluxio error is encounteredjava.io.IOException - if a non-Alluxio error is encounteredlong migrate(AlluxioURI uri, long blockId, java.lang.String workerHost, java.lang.String mediumType) throws AlluxioException, java.io.IOException
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 toAlluxioException - if an Alluxio error is encounteredjava.io.IOException - if a non-Alluxio error is encounteredCopyright © 2023. All Rights Reserved.