@NotThreadSafe public final class JobMasterInfo extends Object
Constructor and Description |
---|
JobMasterInfo(long id,
Address address)
Creates a new instance of
MasterInfo . |
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
long |
getId() |
long |
getLastUpdatedTimeMs() |
long |
getLosePrimacyTimeMs() |
long |
getStartTimeMs() |
BuildVersion |
getVersion() |
void |
setLosePrimacyTimeMs(long losePrimacyTimeMs) |
void |
setStartTimeMs(long startTimeMs) |
void |
setVersion(BuildVersion version) |
String |
toString() |
void |
updateLastUpdatedTimeMs()
Updates the last updated time of the master in ms.
|
public JobMasterInfo(long id, Address address)
MasterInfo
.id
- the master id to useaddress
- the master address to usepublic Address getAddress()
public long getId()
public long getLastUpdatedTimeMs()
public long getStartTimeMs()
public long getLosePrimacyTimeMs()
public BuildVersion getVersion()
public void setStartTimeMs(long startTimeMs)
startTimeMs
- the start time of the master in mspublic void setLosePrimacyTimeMs(long losePrimacyTimeMs)
losePrimacyTimeMs
- the last primacy state change time of the master in mspublic void setVersion(BuildVersion version)
version
- the version of the masterpublic void updateLastUpdatedTimeMs()
Copyright © 2023. All Rights Reserved.