Class DefaultReplicationHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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, java.lang.String workerHost, java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • evict

        public long evict​(alluxio.AlluxioURI uri,
                          long blockId,
                          int numReplicas)
                   throws alluxio.exception.AlluxioException,
                          java.io.IOException
        Description copied from interface: ReplicationHandler
        Decreases the block replication level by a target number of replicas.
        Specified by:
        evict in interface ReplicationHandler
        Parameters:
        uri - URI of the file the block belongs to
        blockId - ID of the block
        numReplicas - how many replicas to remove
        Returns:
        the ID of the replicate job
        Throws:
        alluxio.exception.AlluxioException - if an Alluxio error is encountered
        java.io.IOException - if a non-Alluxio error is encountered
      • replicate

        public long replicate​(alluxio.AlluxioURI uri,
                              long blockId,
                              int numReplicas)
                       throws alluxio.exception.AlluxioException,
                              java.io.IOException
        Description copied from interface: ReplicationHandler
        Increases the block replication level by a target number of replicas.
        Specified by:
        replicate in interface ReplicationHandler
        Parameters:
        uri - URI of the file the block belongs to
        blockId - ID of the block
        numReplicas - how many replicas to add
        Returns:
        the ID of the replicate job
        Throws:
        alluxio.exception.AlluxioException - if an Alluxio error is encountered
        java.io.IOException - if a non-Alluxio error is encountered
      • migrate

        public long migrate​(alluxio.AlluxioURI uri,
                            long blockId,
                            java.lang.String workerHost,
                            java.lang.String mediumType)
                     throws alluxio.exception.AlluxioException,
                            java.io.IOException
        Description copied from interface: ReplicationHandler
        Migrate blocks to the correctly pinned locations.
        Specified by:
        migrate in interface ReplicationHandler
        Parameters:
        uri - URI of the file the block belongs to
        blockId - ID of the block
        workerHost - worker host this block is located at
        mediumType - medium type to migrate this block to
        Returns:
        the ID of the replicate job
        Throws:
        alluxio.exception.AlluxioException - if an Alluxio error is encountered
        java.io.IOException - if a non-Alluxio error is encountered