Storage.StorageDirectory, Storage.StorageDirType, Storage.StorageState
LAST_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, storageDirs
cTime, 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, writeCorruptedData
getCTime, getLayoutVersion, getNamespaceID, setStorageInfo
public DataStorage(StorageInfo storageInfo, String strgID)
public String getStorageID()
protected void setFields(Properties props, Storage.StorageDirectory sd) throws IOException
Storage
setFields
在类中 Storage
IOException
protected void getFields(Properties props, Storage.StorageDirectory sd) throws IOException
Storage
getFields
在类中 Storage
IOException
public boolean isConversionNeeded(Storage.StorageDirectory sd) throws IOException
isConversionNeeded
在类中 Storage
IOException
protected void corruptPreUpgradeStorage(File rootDir) throws IOException
corruptPreUpgradeStorage
在类中 Storage
IOException
Copyright © 2009 The Apache Software Foundation