Package alluxio.wire
Class BlockLocation
- java.lang.Object
-
- alluxio.wire.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 Summary
Constructors Constructor Description BlockLocation()
Creates a new instance ofBlockLocation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getMediumType()
java.lang.String
getTierAlias()
WorkerNetAddress
getWorkerAddress()
long
getWorkerId()
int
hashCode()
BlockLocation
setMediumType(java.lang.String mediumType)
BlockLocation
setTierAlias(java.lang.String tierAlias)
BlockLocation
setWorkerAddress(WorkerNetAddress workerAddress)
BlockLocation
setWorkerId(long workerId)
java.lang.String
toString()
-
-
-
Constructor Detail
-
BlockLocation
public BlockLocation()
Creates a new instance ofBlockLocation
.
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-