@PublicApi @NotThreadSafe public final class BlockLocation extends Object implements Serializable
Constructor and Description |
---|
BlockLocation()
Creates a new instance of
BlockLocation . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getMediumType() |
String |
getTierAlias() |
WorkerNetAddress |
getWorkerAddress() |
long |
getWorkerId() |
int |
hashCode() |
BlockLocation |
setMediumType(String mediumType) |
BlockLocation |
setTierAlias(String tierAlias) |
BlockLocation |
setWorkerAddress(WorkerNetAddress workerAddress) |
BlockLocation |
setWorkerId(long workerId) |
String |
toString() |
public BlockLocation()
BlockLocation
.public long getWorkerId()
public WorkerNetAddress getWorkerAddress()
public String getTierAlias()
public String getMediumType()
public BlockLocation setWorkerId(long workerId)
workerId
- the worker id to usepublic BlockLocation setWorkerAddress(WorkerNetAddress workerAddress)
workerAddress
- the worker address to usepublic BlockLocation setTierAlias(String tierAlias)
tierAlias
- the tier alias to usepublic BlockLocation setMediumType(String mediumType)
mediumType
- the medium type to useCopyright © 2023. All Rights Reserved.