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,
org.apache.hadoop.fs.StorageType sm) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static String |
generateUuid()
Generate new storage ID.
|
DatanodeStorage.State |
getState() |
String |
getStorageID() |
org.apache.hadoop.fs.StorageType |
getStorageType() |
int |
hashCode() |
static boolean |
isValidStorageId(String storageID)
Verify that a given string is a storage ID in the "DS-..uuid.." format.
|
String |
toString() |
public DatanodeStorage(String storageID)
DatanodeStorage.State.NORMAL
and StorageType.DEFAULT
.public DatanodeStorage(String sid, DatanodeStorage.State s, org.apache.hadoop.fs.StorageType sm)
public String getStorageID()
public DatanodeStorage.State getState()
public org.apache.hadoop.fs.StorageType getStorageType()
public static String generateUuid()
public static boolean isValidStorageId(String storageID)
Copyright © 2018 Apache Software Foundation. All Rights Reserved.