@ThreadSafe public final class MasterUfsManager extends AbstractUfsManager implements DelegatingJournaled
AbstractUfsManager.KeyUfsManager.UfsClientmCloser, mUnderFileSystemMap| Constructor and Description |
|---|
MasterUfsManager()
Constructs the instance of
MasterUfsManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
addMount(long mountId,
AlluxioURI ufsUri,
UnderFileSystemConfiguration ufsConf) |
protected void |
connectUfs(UnderFileSystem fs) |
Journaled |
getDelegate() |
CloseableIterator<Journal.JournalEntry> |
getJournalEntryIterator() |
java.util.Map<java.lang.String,UfsMode> |
getPhysicalUfsState(java.util.List<java.lang.String> physicalStores)
Get the physical ufs operation modes for the
UnderFileSystem under the given Mount
table resolution. |
void |
removeMount(long mountId) |
void |
setUfsMode(java.util.function.Supplier<JournalContext> journalContext,
AlluxioURI ufsPath,
UfsMode ufsMode)
Set the operation mode the given physical ufs.
|
close, get, getRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyAndJournal, getCheckpointName, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpointpublic MasterUfsManager()
MasterUfsManager.protected void connectUfs(UnderFileSystem fs) throws java.io.IOException
connectUfs in class AbstractUfsManagerjava.io.IOExceptionpublic void addMount(long mountId,
AlluxioURI ufsUri,
UnderFileSystemConfiguration ufsConf)
addMount in interface UfsManageraddMount in class AbstractUfsManagerpublic void removeMount(long mountId)
removeMount in interface UfsManagerremoveMount in class AbstractUfsManagerpublic java.util.Map<java.lang.String,UfsMode> getPhysicalUfsState(java.util.List<java.lang.String> physicalStores)
UnderFileSystem under the given Mount
table resolution.physicalStores - the physical stores for the mount resolutionpublic void setUfsMode(java.util.function.Supplier<JournalContext> journalContext, AlluxioURI ufsPath, UfsMode ufsMode) throws InvalidPathException
journalContext - the journal contextufsPath - the physical ufs path (scheme and authority only)ufsMode - the ufs operation modeInvalidPathException - if no managed ufs covers the given pathpublic Journaled getDelegate()
getDelegate in interface DelegatingJournaledpublic CloseableIterator<Journal.JournalEntry> getJournalEntryIterator()
getJournalEntryIterator in interface DelegatingJournaledgetJournalEntryIterator in interface JournalEntryIterableCopyright © 2020. All Rights Reserved.