org.apache.hadoop.hdfs.server.namenode
Class BackupStorage
java.lang.Object
org.apache.hadoop.hdfs.server.common.StorageInfo
org.apache.hadoop.hdfs.server.common.Storage
org.apache.hadoop.hdfs.server.namenode.FSImage
org.apache.hadoop.hdfs.server.namenode.BackupStorage
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
@InterfaceAudience.Private
public class BackupStorage
- extends FSImage
Method Summary |
boolean |
isPreUpgradableLayout(Storage.StorageDirectory sd)
Return true if the layout of the given storage directory is from a version
of Hadoop prior to the introduction of the "current" and "previous"
directories which allow upgrade and rollback. |
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.FSImage |
format, getEditLog, getFields, getFsEditName, getFSNamesystem, getRestoreFailedStorage, moveCurrent, moveLastCheckpoint, saveCurrent, setFields, setImageDigest, setRestoreFailedStorage |
Methods inherited from class org.apache.hadoop.hdfs.server.common.Storage |
addStorageDir, checkVersionUpgradable, deleteDir, dirIterator, dirIterator, getBuildVersion, getNumStorageDirs, getRegistrationID, getStorageDir, is203LayoutVersion, isLockSupported, listStorageDirectories, rename, unlockAll, writeAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isPreUpgradableLayout
public boolean isPreUpgradableLayout(Storage.StorageDirectory sd)
throws IOException
- Description copied from class:
Storage
- Return true if the layout of the given storage directory is from a version
of Hadoop prior to the introduction of the "current" and "previous"
directories which allow upgrade and rollback.
- Overrides:
isPreUpgradableLayout
in class FSImage
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation