@ThreadSafe public final class MasterWorkerInfo extends Object
Constructor and Description |
---|
MasterWorkerInfo(long id,
WorkerNetAddress address)
Creates a new instance of
MasterWorkerInfo . |
MasterWorkerInfo(long id,
WorkerNetAddress address,
BuildVersion version)
Creates a new instance of
MasterWorkerInfo . |
Modifier and Type | Method and Description |
---|---|
WorkerInfo |
generateClientWorkerInfo() |
long |
getId() |
long |
getLastUpdatedTimeMs() |
long |
getStartTime() |
BuildVersion |
getVersion() |
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 MasterWorkerInfo(long id, WorkerNetAddress address, BuildVersion version)
MasterWorkerInfo
.id
- the worker id to useaddress
- the worker address to useversion
- the worker version infopublic WorkerNetAddress getWorkerAddress()
public long getId()
public long getLastUpdatedTimeMs()
public long getStartTime()
public BuildVersion getVersion()
public WorkerInfo generateClientWorkerInfo()
WorkerInfo
for this workerpublic void updateLastUpdatedTimeMs()
Copyright © 2023. All Rights Reserved.