@ThreadSafe public final class MasterWorkerInfo extends Object
| Constructor and Description |
|---|
MasterWorkerInfo(long id,
WorkerNetAddress address)
Creates a new instance of
MasterWorkerInfo. |
| Modifier and Type | Method and Description |
|---|---|
WorkerInfo |
generateClientWorkerInfo() |
long |
getId() |
long |
getLastUpdatedTimeMs() |
long |
getStartTime() |
WorkerNetAddress |
getWorkerAddress() |
String |
toString() |
void |
updateLastUpdatedTimeMs()
Updates the last updated time of the worker in ms.
|
public MasterWorkerInfo(long id,
WorkerNetAddress address)
MasterWorkerInfo.id - the worker id to useaddress - the worker address to usepublic WorkerNetAddress getWorkerAddress()
public long getId()
public long getLastUpdatedTimeMs()
public long getStartTime()
public WorkerInfo generateClientWorkerInfo()
WorkerInfo for this workerpublic void updateLastUpdatedTimeMs()
Copyright © 2019. All Rights Reserved.