@PublicApi @ThreadSafe public final class BlockWorkerInfo extends Object
Constructor and Description |
---|
BlockWorkerInfo(WorkerNetAddress netAddress,
long capacityBytes,
long usedBytes)
Constructs the block worker information.
|
Modifier and Type | Method and Description |
---|---|
long |
getCapacityBytes() |
WorkerNetAddress |
getNetAddress() |
long |
getUsedBytes() |
String |
toString() |
public BlockWorkerInfo(WorkerNetAddress netAddress, long capacityBytes, long usedBytes)
netAddress
- the address of the workercapacityBytes
- the capacity of the worker in bytesusedBytes
- the used bytes of the workerpublic WorkerNetAddress getNetAddress()
public long getCapacityBytes()
public long getUsedBytes()
Copyright © 2023. All Rights Reserved.