@PublicApi @ThreadSafe public final class BlockWorkerInfo extends java.lang.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() |
java.lang.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()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All Rights Reserved.