M
- manager filesystem store.Currently nodelabel will use
CommonNodeLabelManager.public abstract class AbstractFSNodeStore<M> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractFSNodeStore.StoreSchema
Filesystem store schema define the log name and mirror name.
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.fs.FileSystem |
fs |
protected org.apache.hadoop.fs.Path |
fsWorkingPath |
protected static org.slf4j.Logger |
LOG |
protected M |
manager |
Constructor and Description |
---|
AbstractFSNodeStore(FSStoreOpHandler.StoreType storeType) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeFSStore() |
protected void |
ensureAppendEditLogFile() |
protected void |
ensureCloseEditlogFile() |
org.apache.hadoop.fs.FileSystem |
getFs() |
org.apache.hadoop.fs.Path |
getFsWorkingPath() |
protected FSStoreOpHandler.StoreType |
getStoreType() |
void |
initFileSystem(org.apache.hadoop.conf.Configuration conf) |
protected void |
initStore(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path fsStorePath,
AbstractFSNodeStore.StoreSchema schma,
M mgr) |
protected void |
loadFromMirror(org.apache.hadoop.fs.Path newMirrorPath,
org.apache.hadoop.fs.Path oldMirrorPath) |
protected void |
loadManagerFromEditLog(org.apache.hadoop.fs.Path editPath) |
protected void |
recoverFromStore() |
void |
setFs(org.apache.hadoop.fs.FileSystem fs) |
protected void |
writeToLog(FSNodeStoreLogOp op) |
protected static final org.slf4j.Logger LOG
protected M manager
protected org.apache.hadoop.fs.Path fsWorkingPath
protected org.apache.hadoop.fs.FileSystem fs
public AbstractFSNodeStore(FSStoreOpHandler.StoreType storeType)
protected void initStore(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path fsStorePath, AbstractFSNodeStore.StoreSchema schma, M mgr) throws IOException
IOException
public void initFileSystem(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
protected void writeToLog(FSNodeStoreLogOp op) throws IOException
IOException
protected void ensureAppendEditLogFile() throws IOException
IOException
protected void ensureCloseEditlogFile() throws IOException
IOException
protected void loadFromMirror(org.apache.hadoop.fs.Path newMirrorPath, org.apache.hadoop.fs.Path oldMirrorPath) throws IOException
IOException
protected FSStoreOpHandler.StoreType getStoreType()
public org.apache.hadoop.fs.Path getFsWorkingPath()
protected void recoverFromStore() throws IOException
IOException
protected void loadManagerFromEditLog(org.apache.hadoop.fs.Path editPath) throws IOException
IOException
public org.apache.hadoop.fs.FileSystem getFs()
public void setFs(org.apache.hadoop.fs.FileSystem fs)
protected void closeFSStore()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.