@PublicApi @ThreadSafe public final class BlockWorkerInfo extends Object
Constructor and Description |
---|
BlockWorkerInfo(WorkerNetAddress netAddress,
long capacityBytes,
long usedBytes)
Constructs the block worker information.
|
BlockWorkerInfo(WorkerNetAddress netAddress,
long capacityBytes,
long usedBytes,
boolean active)
Constructs the block worker information.
|
Modifier and Type | Method and Description |
---|---|
long |
getCapacityBytes() |
WorkerNetAddress |
getNetAddress() |
long |
getUsedBytes() |
boolean |
isActive()
Whether this worker is active or not.
|
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 BlockWorkerInfo(WorkerNetAddress netAddress, long capacityBytes, long usedBytes, boolean active)
netAddress
- the address of the workercapacityBytes
- the capacity of the worker in bytesusedBytes
- the used bytes of the workeractive
- whether this worker is active or notpublic WorkerNetAddress getNetAddress()
public long getCapacityBytes()
public long getUsedBytes()
public boolean isActive()
Copyright © 2023. All Rights Reserved.