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,
Attributes attributes) |
DriveInfo(Long capacity,
Long driveID,
Long nodeID,
String serial,
String chassisSlot,
Long slot,
String status,
String type,
Attributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
DriveInfo.Builder |
asBuilder() |
static DriveInfo.Builder |
builder() |
boolean |
equals(Object o) |
Attributes |
getAttributes()
List of Name/Value pairs in JSON object format.
|
Long |
getCapacity()
Total capacity of the drive, in bytes.
|
String |
getChassisSlot()
For HCI platforms, this value is the node letter and slot number in the server chassis where this drive is located.
|
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(Attributes attributes) |
void |
setCapacity(Long capacity) |
void |
setChassisSlot(String chassisSlot) |
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
@Since(value="7.0") public DriveInfo(Long capacity, Long driveID, Long nodeID, String serial, Long slot, String status, String type, Attributes attributes)
@Since(value="10.0") public DriveInfo(Long capacity, Long driveID, Long nodeID, String serial, String chassisSlot, Long slot, String status, String type, Attributes attributes)
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 String getChassisSlot()
public void setChassisSlot(String chassisSlot)
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 Attributes getAttributes()
public void setAttributes(Attributes 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.