Package alluxio.wire

Class BlockLocation

  • All Implemented Interfaces:
    java.io.Serializable

    @PublicApi
    @NotThreadSafe
    public final class BlockLocation
    extends java.lang.Object
    implements java.io.Serializable
    The location of a block.
    See Also:
    Serialized Form
    • Constructor Detail

      • BlockLocation

        public BlockLocation()
        Creates a new instance of BlockLocation.
    • Method Detail

      • getWorkerId

        public long getWorkerId()
        Returns:
        the worker id
      • getWorkerAddress

        public WorkerNetAddress getWorkerAddress()
        Returns:
        the worker address
      • getTierAlias

        public java.lang.String getTierAlias()
        Returns:
        the tier alias
      • getMediumType

        public java.lang.String getMediumType()
        Returns:
        the medium type
      • setWorkerId

        public BlockLocation setWorkerId​(long workerId)
        Parameters:
        workerId - the worker id to use
        Returns:
        the block location
      • setWorkerAddress

        public BlockLocation setWorkerAddress​(WorkerNetAddress workerAddress)
        Parameters:
        workerAddress - the worker address to use
        Returns:
        the block location
      • setTierAlias

        public BlockLocation setTierAlias​(java.lang.String tierAlias)
        Parameters:
        tierAlias - the tier alias to use
        Returns:
        the block location
      • setMediumType

        public BlockLocation setMediumType​(java.lang.String mediumType)
        Parameters:
        mediumType - the medium type to use
        Returns:
        the block location
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object