public interface MetaMaster extends BackupOps, Master
backup, getBackupStatus
createJournalContext, getMasterContext, getStandbyServices
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName
getJournalEntryIterator
close, getDependencies, getName, getServices, start, stop
String getClusterID()
ConfigCheckReport getConfigCheckReport()
Configuration getConfiguration(GetConfigurationPOptions options)
options
- method optionsConfigHash getConfigHash()
Optional<JournalSpaceMonitor> getJournalSpaceMonitor()
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
void setNewerVersionAvailable(boolean available)
available
- new version is availableboolean getNewerVersionAvailable()
Address getMasterAddress()
long getMasterId(Address address)
address
- the master hostnameInetSocketAddress getRpcAddress()
long getStartTimeMs()
long getUptimeMs()
int getWebPort()
MasterInfo[] getStandbyMasterInfos()
MasterInfo
of standby mastersMasterInfo[] getLostMasterInfos()
MasterInfo
of lost mastersboolean isInSafeMode()
MetaCommand masterHeartbeat(long masterId, MasterHeartbeatPOptions options)
masterId
- the master idoptions
- the options that contains optional master infovoid 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.