public interface MetaMaster extends Master
Modifier and Type | Method and Description |
---|---|
BackupResponse |
backup(BackupOptions options)
Backs up the master.
|
ConfigCheckReport |
getConfigCheckReport() |
List<ConfigProperty> |
getConfiguration(GetConfigurationOptions options) |
List<Address> |
getMasterAddresses() |
long |
getMasterId(Address address)
Returns a master id for the given master, creating one if the master is new.
|
InetSocketAddress |
getRpcAddress() |
long |
getStartTimeMs() |
long |
getUptimeMs() |
int |
getWebPort() |
List<Address> |
getWorkerAddresses() |
boolean |
isInSafeMode() |
MetaCommand |
masterHeartbeat(long masterId)
A standby master periodically heartbeats with the leader master.
|
void |
masterRegister(long masterId,
RegisterMasterTOptions options)
A standby master registers with the leader master.
|
createJournalContext
getName, processJournalEntry, resetState
getJournalEntryIterator
getDependencies, getName, getServices, start, stop
BackupResponse backup(BackupOptions options) throws IOException
options
- method optionsIOException
ConfigCheckReport getConfigCheckReport()
List<ConfigProperty> getConfiguration(GetConfigurationOptions options)
options
- method optionslong getMasterId(Address address)
address
- the master hostnameInetSocketAddress getRpcAddress()
long getStartTimeMs()
long getUptimeMs()
int getWebPort()
boolean isInSafeMode()
MetaCommand masterHeartbeat(long masterId)
masterId
- the master idvoid masterRegister(long masterId, RegisterMasterTOptions options) throws NotFoundException
masterId
- the master id of the standby master registeringoptions
- the options that contains master configurationNotFoundException
- if masterId cannot be foundCopyright © 2023. All Rights Reserved.