public class DatanodeStorage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DatanodeStorage.State
The state of the storage.
|
Constructor and Description |
---|
DatanodeStorage(String storageID)
Create a storage with
DatanodeStorage.State.NORMAL and StorageType.DEFAULT . |
DatanodeStorage(String sid,
DatanodeStorage.State s,
StorageType sm) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static String |
generateUuid()
Generate new storage ID.
|
DatanodeStorage.State |
getState() |
String |
getStorageID() |
StorageType |
getStorageType() |
int |
hashCode() |
String |
toString() |
public DatanodeStorage(String storageID)
DatanodeStorage.State.NORMAL
and StorageType.DEFAULT
.public DatanodeStorage(String sid, DatanodeStorage.State s, StorageType sm)
public String getStorageID()
public DatanodeStorage.State getState()
public StorageType getStorageType()
public static String generateUuid()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.