程序包 | 说明 |
---|---|
org.apache.hadoop.hdfs.server.common | |
org.apache.hadoop.hdfs.server.datanode | |
org.apache.hadoop.hdfs.server.namenode |
限定符和类型 | 字段和说明 |
---|---|
protected List<Storage.StorageDirectory> |
Storage.storageDirs |
限定符和类型 | 方法和说明 |
---|---|
Storage.StorageDirectory |
Storage.getStorageDir(int idx) |
限定符和类型 | 方法和说明 |
---|---|
Iterator<Storage.StorageDirectory> |
Storage.dirIterator()
Return default iterator
This iterator returns all entires of storageDirs
|
Iterator<Storage.StorageDirectory> |
Storage.dirIterator(Storage.StorageDirType dirType)
Return iterator based on Storage Directory Type
This iterator selects entires of storageDirs of type dirType and returns
them via the Iterator
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
Storage.addStorageDir(Storage.StorageDirectory sd) |
protected void |
Storage.getFields(Properties props,
Storage.StorageDirectory sd)
Get common storage fields.
|
abstract boolean |
Storage.isConversionNeeded(Storage.StorageDirectory sd) |
protected void |
Storage.setFields(Properties props,
Storage.StorageDirectory sd)
Set common storage fields.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
DataStorage.getFields(Properties props,
Storage.StorageDirectory sd) |
boolean |
DataStorage.isConversionNeeded(Storage.StorageDirectory sd) |
protected void |
DataStorage.setFields(Properties props,
Storage.StorageDirectory sd) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
FSImage.getFields(Properties props,
Storage.StorageDirectory sd) |
boolean |
FSImage.isConversionNeeded(Storage.StorageDirectory sd) |
protected void |
FSImage.moveCurrent(Storage.StorageDirectory sd)
Move
current to lastcheckpoint.tmp and
recreate empty current . |
protected void |
FSImage.moveLastCheckpoint(Storage.StorageDirectory sd)
Move
lastcheckpoint.tmp to previous.checkpoint |
protected void |
FSImage.saveCurrent(Storage.StorageDirectory sd)
Save current image and empty journal into
current directory. |
protected void |
FSImage.setFields(Properties props,
Storage.StorageDirectory sd)
Write last checkpoint time and version file into the storage directory.
|
Copyright © 2009 The Apache Software Foundation