@ThreadSafe public final class DefaultReplicationHandler extends Object implements ReplicationHandler
ReplicationHandler that utilizes job service.| Constructor and Description |
|---|
DefaultReplicationHandler(JobMasterClientPool jobMasterClientPool)
Creates a new instance of
DefaultReplicationHandler. |
| Modifier and Type | Method and Description |
|---|---|
long |
evict(alluxio.AlluxioURI uri,
long blockId,
int numReplicas)
Decreases the block replication level by a target number of replicas.
|
long |
migrate(alluxio.AlluxioURI uri,
long blockId,
String workerHost,
String mediumType)
Migrate blocks to the correctly pinned locations.
|
long |
replicate(alluxio.AlluxioURI uri,
long blockId,
int numReplicas)
Increases the block replication level by a target number of replicas.
|
public DefaultReplicationHandler(JobMasterClientPool jobMasterClientPool)
DefaultReplicationHandler.jobMasterClientPool - job master client poolpublic long evict(alluxio.AlluxioURI uri,
long blockId,
int numReplicas)
throws alluxio.exception.AlluxioException,
IOException
ReplicationHandlerevict in interface ReplicationHandleruri - URI of the file the block belongs toblockId - ID of the blocknumReplicas - how many replicas to removealluxio.exception.AlluxioException - if an Alluxio error is encounteredIOException - if a non-Alluxio error is encounteredpublic long replicate(alluxio.AlluxioURI uri,
long blockId,
int numReplicas)
throws alluxio.exception.AlluxioException,
IOException
ReplicationHandlerreplicate in interface ReplicationHandleruri - URI of the file the block belongs toblockId - ID of the blocknumReplicas - how many replicas to addalluxio.exception.AlluxioException - if an Alluxio error is encounteredIOException - if a non-Alluxio error is encounteredpublic long migrate(alluxio.AlluxioURI uri,
long blockId,
String workerHost,
String mediumType)
throws alluxio.exception.AlluxioException,
IOException
ReplicationHandlermigrate in interface ReplicationHandleruri - 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 toalluxio.exception.AlluxioException - if an Alluxio error is encounteredIOException - if a non-Alluxio error is encounteredCopyright © 2019. All Rights Reserved.