public interface MetaMaster extends BackupOps, Master
Modifier and Type | Method and Description |
---|---|
String |
checkpoint()
Creates a checkpoint in the primary master journal system.
|
String |
getClusterID() |
ConfigCheckReport |
getConfigCheckReport() |
ConfigHash |
getConfigHash() |
Configuration |
getConfiguration(GetConfigurationPOptions options) |
Optional<JournalSpaceMonitor> |
getJournalSpaceMonitor() |
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 |
setNewerVersionAvailable(boolean available)
Sets whether newer version Alluxio is available.
|
void |
setPathConfiguration(String path,
Map<PropertyKey,String> properties)
Sets properties for a path.
|
Map<String,Boolean> |
updateConfiguration(Map<String,String> propertiesMap) |
backup, getBackupStatus
createJournalContext, getMasterContext
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()
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.