public class Drive
extends Object
implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Drive.Builder |
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Drive() |
Drive(Long driveID,
Long nodeID,
Optional<Long> assignedService,
Long[] asyncResultIDs,
Long capacity,
String serial,
Optional<Long> slot,
String driveStatus,
String driveType,
Optional<Long> reservedSliceFileCapacity,
Optional<Long> customerSliceFileCapacity,
Optional<Boolean> smartSsdWriteCapable,
Attributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
Drive.Builder |
asBuilder() |
static Drive.Builder |
builder() |
boolean |
equals(Object o) |
Optional<Long> |
getAssignedService()
If this drive is hosting a service, the identifier for that service.
|
Long[] |
getAsyncResultIDs()
The list of asynchronous jobs currently running on the drive (for example: a secure erase job).
|
Attributes |
getAttributes()
List of Name/Value pairs in JSON object format.
|
Long |
getCapacity()
The raw capacity of this drive in bytes.
|
Optional<Long> |
getCustomerSliceFileCapacity() |
Long |
getDriveID()
A unique identifier for this drive.
|
String |
getDriveStatus()
The current status of this drive.
|
String |
getDriveType()
The type of this drive.
|
Long |
getNodeID()
The node this drive is located.
|
Optional<Long> |
getReservedSliceFileCapacity() |
String |
getSerial()
The manufacturer's serial number for this drive.
|
Optional<Long> |
getSlot()
Slot number in the server chassis where this drive is located.
|
Optional<Boolean> |
getSmartSsdWriteCapable() |
int |
hashCode() |
void |
setAssignedService(Optional<Long> assignedService) |
void |
setAsyncResultIDs(Long[] asyncResultIDs) |
void |
setAttributes(Attributes attributes) |
void |
setCapacity(Long capacity) |
void |
setCustomerSliceFileCapacity(Optional<Long> customerSliceFileCapacity) |
void |
setDriveID(Long driveID) |
void |
setDriveStatus(String driveStatus) |
void |
setDriveType(String driveType) |
void |
setNodeID(Long nodeID) |
void |
setReservedSliceFileCapacity(Optional<Long> reservedSliceFileCapacity) |
void |
setSerial(String serial) |
void |
setSlot(Optional<Long> slot) |
void |
setSmartSsdWriteCapable(Optional<Boolean> smartSsdWriteCapable) |
Map<String,Object> |
toMap() |
String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public Drive(Long driveID, Long nodeID, Optional<Long> assignedService, Long[] asyncResultIDs, Long capacity, String serial, Optional<Long> slot, String driveStatus, String driveType, Optional<Long> reservedSliceFileCapacity, Optional<Long> customerSliceFileCapacity, Optional<Boolean> smartSsdWriteCapable, Attributes attributes)
public Long getDriveID()
public void setDriveID(Long driveID)
public Long getNodeID()
public void setNodeID(Long nodeID)
public Optional<Long> getAssignedService()
public void setAssignedService(Optional<Long> assignedService)
public Long[] getAsyncResultIDs()
public void setAsyncResultIDs(Long[] asyncResultIDs)
public Long getCapacity()
public void setCapacity(Long capacity)
public String getSerial()
public void setSerial(String serial)
public Optional<Long> getSlot()
public void setSlot(Optional<Long> slot)
public String getDriveStatus()
public void setDriveStatus(String driveStatus)
public String getDriveType()
public void setDriveType(String driveType)
public Optional<Long> getReservedSliceFileCapacity()
public void setReservedSliceFileCapacity(Optional<Long> reservedSliceFileCapacity)
public Optional<Long> getCustomerSliceFileCapacity()
public void setCustomerSliceFileCapacity(Optional<Long> customerSliceFileCapacity)
public Optional<Boolean> getSmartSsdWriteCapable()
public void setSmartSsdWriteCapable(Optional<Boolean> smartSsdWriteCapable)
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 Drive.Builder builder()
public final Drive.Builder asBuilder()
Copyright © 2014-2016 NetApp, Inc. All Rights Reserved.