@NotThreadSafe public final class MasterInfo extends Object
Constructor and Description |
---|
MasterInfo()
Creates a new instance of
MasterInfo . |
MasterInfo(long id,
Address address)
Creates a new instance of
MasterInfo . |
public MasterInfo()
MasterInfo
.public MasterInfo(long id, Address address)
MasterInfo
.id
- the master id to useaddress
- the master address to usepublic Address getAddress()
public long getId()
public String getLastUpdatedTime()
public String getStartTime()
public String getGainPrimacyTime()
public String getLosePrimacyTime()
public String getVersion()
public String getRevision()
public String getLastCheckpointTime()
public long getJournalEntriesSinceCheckpoint()
public MasterInfo setAddress(Address address)
address
- the master address informationpublic MasterInfo setId(long id)
id
- the master idpublic MasterInfo setLastUpdatedTime(String lastUpdatedTime)
lastUpdatedTime
- the last update timepublic MasterInfo setLastUpdatedTimeMs(long lastUpdatedTime)
lastUpdatedTime
- the last update time in mspublic MasterInfo setStartTime(String startTime)
startTime
- the start time of the masterpublic MasterInfo setStartTimeMs(long startTime)
startTime
- the start time of the master in mspublic MasterInfo setGainPrimacyTime(String gainPrimacyTime)
gainPrimacyTime
- the last gain primacy time of the masterpublic MasterInfo setGainPrimacyTimeMs(long gainPrimacyTimeMs)
gainPrimacyTimeMs
- the last gain primacy time of the master in mspublic MasterInfo setLosePrimacyTime(String losePrimacyTime)
losePrimacyTime
- the last lose primacy time of the masterpublic MasterInfo setLosePrimacyTimeMs(long losePrimacyTimeMs)
losePrimacyTimeMs
- the last lose primacy time of the master in mspublic MasterInfo setVersion(String version)
version
- the version of the masterpublic MasterInfo setRevision(String revision)
revision
- the revision of the masterpublic MasterInfo setLastCheckpointTime(String lastCheckpointTime)
lastCheckpointTime
- the last checkpoint timepublic MasterInfo setLastCheckpointTimeMs(long lastCheckpointTime)
lastCheckpointTime
- the last checkpoint time in mspublic MasterInfo setJournalEntriesSinceCheckpoint(long journalEntriesSinceCheckpoint)
journalEntriesSinceCheckpoint
- journal entries since last checkpointCopyright © 2023. All Rights Reserved.