public class DriveInfo
extends Object
implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
DriveInfo.Builder |
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
DriveInfo() |
DriveInfo(Long capacity,
Long driveID,
Long nodeID,
String serial,
Long slot,
String status,
String type,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
DriveInfo.Builder |
asBuilder() |
static DriveInfo.Builder |
builder() |
boolean |
equals(Object o) |
Map<String,Object> |
getAttributes()
List of Name/Value pairs in JSON object format.
|
Long |
getCapacity()
Total capacity of the drive, in bytes.
|
Long |
getDriveID()
DriveID for this drive.
|
Long |
getNodeID()
NodeID where this drive is located.
|
String |
getSerial()
Drive serial number.
|
Long |
getSlot()
Slot number in the server chassis where this drive is located, or -1 if SATADimm used for internal metadata drive.
|
String |
getStatus() |
String |
getType() |
int |
hashCode() |
void |
setAttributes(Map<String,Object> attributes) |
void |
setCapacity(Long capacity) |
void |
setDriveID(Long driveID) |
void |
setNodeID(Long nodeID) |
void |
setSerial(String serial) |
void |
setSlot(Long slot) |
void |
setStatus(String status) |
void |
setType(String type) |
Map<String,Object> |
toMap() |
String |
toString() |
public static final long serialVersionUID
public Long getCapacity()
public void setCapacity(Long capacity)
public Long getDriveID()
public void setDriveID(Long driveID)
public Long getNodeID()
public void setNodeID(Long nodeID)
public String getSerial()
public void setSerial(String serial)
public Long getSlot()
public void setSlot(Long slot)
public String getStatus()
public void setStatus(String status)
public String getType()
public void setType(String type)
public Map<String,Object> getAttributes()
public void setAttributes(Map<String,Object> attributes)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Map<String,Object> toMap()
public String toString()
toString in class Objectpublic static DriveInfo.Builder builder()
public final DriveInfo.Builder asBuilder()
Copyright © 2014-2016 NetApp, Inc. All Rights Reserved.