public interface MetaMaster extends Master
| Modifier and Type | Method and Description |
|---|---|
BackupResponse |
backup(BackupPOptions options)
Backs up the master.
|
java.lang.String |
checkpoint()
Creates a checkpoint in the primary master journal system.
|
java.lang.String |
getClusterID() |
ConfigCheckReport |
getConfigCheckReport() |
ConfigHash |
getConfigHash() |
Configuration |
getConfiguration(GetConfigurationPOptions options) |
java.util.List<Address> |
getMasterAddresses() |
long |
getMasterId(Address address)
Returns a master id for the given master, creating one if the master is new.
|
boolean |
getNewerVersionAvailable() |
java.net.InetSocketAddress |
getRpcAddress() |
long |
getStartTimeMs() |
long |
getUptimeMs() |
int |
getWebPort() |
java.util.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(java.lang.String path)
Removes all properties for a path.
|
void |
removePathConfiguration(java.lang.String path,
java.util.Set<java.lang.String> keys)
Removes properties for a path.
|
void |
setPathConfiguration(java.lang.String path,
java.util.Map<PropertyKey,java.lang.String> properties)
Sets properties for a path.
|
createJournalContextapplyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpointgetCheckpointNamegetJournalEntryIteratorclose, getDependencies, getName, getServices, start, stopBackupResponse backup(BackupPOptions options) throws java.io.IOException
options - method optionsjava.io.IOExceptionjava.lang.String getClusterID()
ConfigCheckReport getConfigCheckReport()
Configuration getConfiguration(GetConfigurationPOptions options)
options - method optionsConfigHash getConfigHash()
void setPathConfiguration(java.lang.String path,
java.util.Map<PropertyKey,java.lang.String> properties)
throws UnavailableException
path - the pathproperties - the properties for pathUnavailableExceptionvoid removePathConfiguration(java.lang.String path,
java.util.Set<java.lang.String> keys)
throws UnavailableException
path - the pathkeys - the property keysUnavailableExceptionvoid removePathConfiguration(java.lang.String path)
throws UnavailableException
path - the pathUnavailableExceptionboolean getNewerVersionAvailable()
java.util.List<Address> getMasterAddresses()
long getMasterId(Address address)
address - the master hostnamejava.net.InetSocketAddress getRpcAddress()
long getStartTimeMs()
long getUptimeMs()
int getWebPort()
java.util.List<Address> getWorkerAddresses()
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 foundjava.lang.String checkpoint()
throws java.io.IOException
java.io.IOExceptionCopyright © 2019. All Rights Reserved.