org.apache.hadoop.hdfs.server.datanode
Interface FSDatasetInterface.FSVolumeInterface

Enclosing interface:
org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface

public static interface FSDatasetInterface.FSVolumeInterface

This is an interface for the underlying volume.

See Also:
FSDataset.FSVolume

Method Summary
 long getAvailable()
           
 String[] getBlockPoolList()
           
 File getDirectory(String bpid)
           
 File getFinalizedDir(String bpid)
           
 

Method Detail

getBlockPoolList

String[] getBlockPoolList()
Returns:
a list of block pools.

getAvailable

long getAvailable()
                  throws IOException
Returns:
the available storage space in bytes.
Throws:
IOException

getDirectory

File getDirectory(String bpid)
                  throws IOException
Returns:
the directory for the block pool.
Throws:
IOException

getFinalizedDir

File getFinalizedDir(String bpid)
                     throws IOException
Returns:
the directory for the finalized blocks in the block pool.
Throws:
IOException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.