public interface MetaMaster extends Master
Modifier and Type | Method and Description |
---|---|
BackupResponse |
backup(BackupPOptions options)
Backs up the master.
|
String |
checkpoint()
Creates a checkpoint in the primary master journal system.
|
String |
getClusterID() |
ConfigCheckReport |
getConfigCheckReport() |
ConfigHash |
getConfigHash() |
Configuration |
getConfiguration(GetConfigurationPOptions options) |
List<Address> |
getMasterAddresses() |
long |
getMasterId(Address address)
Returns a master id for the given master, creating one if the master is new.
|
boolean |
getNewerVersionAvailable() |
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,
RegisterMasterPOptions options)
A standby master registers with the leader master.
|
void |
removePathConfiguration(String path)
Removes all properties for a path.
|
void |
removePathConfiguration(String path,
Set<String> keys)
Removes properties for a path.
|
void |
setPathConfiguration(String path,
Map<PropertyKey,String> properties)
Sets properties for a path.
|
createJournalContext
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName
getJournalEntryIterator
close, getDependencies, getName, getServices, start, stop
BackupResponse backup(BackupPOptions options) throws IOException
options
- method optionsIOException
String getClusterID()
ConfigCheckReport getConfigCheckReport()
Configuration getConfiguration(GetConfigurationPOptions options)
options
- method optionsConfigHash getConfigHash()
void setPathConfiguration(String path, Map<PropertyKey,String> properties) throws UnavailableException
path
- the pathproperties
- the properties for pathUnavailableException
void removePathConfiguration(String path, Set<String> keys) throws UnavailableException
path
- the pathkeys
- the property keysUnavailableException
void removePathConfiguration(String path) throws UnavailableException
path
- the pathUnavailableException
boolean getNewerVersionAvailable()
long 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, RegisterMasterPOptions options) throws NotFoundException
masterId
- the master id of the standby master registeringoptions
- the options that contains master configurationNotFoundException
- if masterId cannot be foundString checkpoint() throws IOException
IOException
Copyright © 2023. All Rights Reserved.