public interface MetaMaster extends BackupOps, Master
LOG
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() |
MasterInfo[] |
getLostMasterInfos() |
Address |
getMasterAddress() |
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() |
MasterInfo[] |
getStandbyMasterInfos() |
long |
getStartTimeMs() |
long |
getUptimeMs() |
int |
getWebPort() |
List<Address> |
getWorkerAddresses() |
boolean |
isInSafeMode() |
List<ProxyStatus> |
listProxyStatus()
Lists information of all known Proxy instances.
|
MetaCommand |
masterHeartbeat(long masterId,
MasterHeartbeatPOptions options)
A standby master periodically heartbeats with the leader master.
|
void |
masterRegister(long masterId,
RegisterMasterPOptions options)
A standby master registers with the leader master.
|
void |
proxyHeartbeat(ProxyHeartbeatPRequest request)
A Proxy periodically heartbeats with the primary 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, getStandbyServices
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName, restoreFromCheckpoint, writeToCheckpoint
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
Map<String,Boolean> updateConfiguration(Map<String,String> propertiesMap)
propertiesMap
- properties to updatevoid proxyHeartbeat(ProxyHeartbeatPRequest request)
request
- the heartbeat messageList<ProxyStatus> listProxyStatus()
Copyright © 2023. All Rights Reserved.