@ThreadSafe
public final class MasterWorkerInfo
extends java.lang.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() |
java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic void updateLastUpdatedTimeMs()
Copyright © 2019. All Rights Reserved.