org.apache.hadoop.hdfs.server.protocol
Class DatanodeStorage

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.protocol.DatanodeStorage

public class DatanodeStorage
extends Object

Class captures information of a storage in Datanode.


Nested Class Summary
static class DatanodeStorage.State
          The state of the storage.
 
Constructor Summary
DatanodeStorage(String storageID)
          Create a storage with DatanodeStorage.State.NORMAL.
DatanodeStorage(String sid, DatanodeStorage.State s)
           
 
Method Summary
 DatanodeStorage.State getState()
           
 String getStorageID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatanodeStorage

public DatanodeStorage(String storageID)
Create a storage with DatanodeStorage.State.NORMAL.

Parameters:
storageID -

DatanodeStorage

public DatanodeStorage(String sid,
                       DatanodeStorage.State s)
Method Detail

getStorageID

public String getStorageID()

getState

public DatanodeStorage.State getState()


Copyright © 2013 Apache Software Foundation. All Rights Reserved.