Storage.StorageDirectory, Storage.StorageDirType, Storage.StorageStateLAST_PRE_UPGRADE_LAYOUT_VERSION, LAST_UPGRADABLE_HADOOP_VERSION, LAST_UPGRADABLE_LAYOUT_VERSION, LAYOUT_VERSIONS_203, LOG, PRE_GENERATIONSTAMP_LAYOUT_VERSION, STORAGE_DIR_CURRENT, STORAGE_FILE_VERSION, storageDirscTime, layoutVersion, namespaceID| 构造器和说明 |
|---|
DataStorage(StorageInfo storageInfo,
String strgID) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
corruptPreUpgradeStorage(File rootDir) |
protected void |
getFields(Properties props,
Storage.StorageDirectory sd)
Get common storage fields.
|
String |
getStorageID() |
boolean |
isConversionNeeded(Storage.StorageDirectory sd) |
protected void |
setFields(Properties props,
Storage.StorageDirectory sd)
Set common storage fields.
|
addStorageDir, checkVersionUpgradable, deleteDir, dirIterator, dirIterator, getNumStorageDirs, getRegistrationID, getStorageDir, is203LayoutVersion, isLockSupported, rename, unlockAll, writeAll, writeCorruptedDatagetCTime, getLayoutVersion, getNamespaceID, setStorageInfopublic DataStorage(StorageInfo storageInfo, String strgID)
public String getStorageID()
protected void setFields(Properties props, Storage.StorageDirectory sd) throws IOException
StoragesetFields 在类中 StorageIOExceptionprotected void getFields(Properties props, Storage.StorageDirectory sd) throws IOException
StoragegetFields 在类中 StorageIOExceptionpublic boolean isConversionNeeded(Storage.StorageDirectory sd) throws IOException
isConversionNeeded 在类中 StorageIOExceptionprotected void corruptPreUpgradeStorage(File rootDir) throws IOException
corruptPreUpgradeStorage 在类中 StorageIOExceptionCopyright © 2009 The Apache Software Foundation