public class Drive
extends java.lang.Object
implements java.io.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(java.lang.Long driveID,
java.lang.Long nodeID,
Optional<java.lang.Long> assignedService,
java.lang.Long[] asyncResultIDs,
java.lang.Long capacity,
java.lang.Long usableCapacity,
java.lang.Long segmentFileSize,
java.lang.String serial,
Optional<java.lang.Long> slot,
java.lang.String driveStatus,
Optional<java.lang.String> driveFailureDetail,
Optional<java.lang.String> driveSecurityFaultReason,
Optional<java.lang.Long> keyProviderID,
Optional<java.util.UUID> keyID,
java.lang.String driveType,
Optional<java.lang.Long> reservedSliceFileCapacity,
Optional<java.lang.Long> customerSliceFileCapacity,
Optional<java.lang.Boolean> smartSsdWriteCapable,
Attributes attributes) |
Drive(java.lang.Long driveID,
java.lang.Long nodeID,
Optional<java.lang.Long> assignedService,
java.lang.Long[] asyncResultIDs,
java.lang.Long capacity,
java.lang.Long usableCapacity,
java.lang.Long segmentFileSize,
java.lang.String serial,
Optional<java.lang.Long> slot,
java.lang.String driveStatus,
Optional<java.lang.String> driveFailureDetail,
Optional<java.lang.String> driveSecurityFaultReason,
Optional<java.lang.Long> keyProviderID,
Optional<java.util.UUID> keyID,
java.lang.String driveType,
Optional<java.lang.Long> reservedSliceFileCapacity,
Optional<java.lang.Long> customerSliceFileCapacity,
Optional<java.lang.Boolean> smartSsdWriteCapable,
Optional<java.lang.Boolean> skipLabel,
Attributes attributes) |
Drive(java.lang.Long driveID,
java.lang.Long nodeID,
Optional<java.lang.Long> assignedService,
java.lang.Long[] asyncResultIDs,
java.lang.Long capacity,
java.lang.String serial,
Optional<java.lang.Long> slot,
java.lang.String driveStatus,
Optional<java.lang.String> driveFailureDetail,
Optional<java.lang.String> driveSecurityFaultReason,
Optional<java.lang.Long> keyProviderID,
Optional<java.util.UUID> keyID,
java.lang.String driveType,
Optional<java.lang.Long> reservedSliceFileCapacity,
Optional<java.lang.Long> customerSliceFileCapacity,
Optional<java.lang.Boolean> smartSsdWriteCapable,
Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
Drive.Builder |
asBuilder() |
static Drive.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Optional<java.lang.Long> |
getAssignedService()
If this drive is hosting a service, the identifier for that service.
|
java.lang.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.
|
java.lang.Long |
getCapacity()
Total Raw capacity of the drive, in bytes.
|
Optional<java.lang.Long> |
getCustomerSliceFileCapacity() |
Optional<java.lang.String> |
getDriveFailureDetail()
If a drive's status is 'Failed', this field provides more detail on why the drive was marked failed.
|
java.lang.Long |
getDriveID()
A unique identifier for this drive.
|
Optional<java.lang.String> |
getDriveSecurityFaultReason()
If enabling or disabling drive security failed, this is the reason why it failed.
|
java.lang.String |
getDriveStatus()
The current status of this drive.
|
java.lang.String |
getDriveType()
The type of this drive.
|
Optional<java.util.UUID> |
getKeyID()
The keyID used by the key provider to acquire the authentication key for unlocking this drive.
|
Optional<java.lang.Long> |
getKeyProviderID()
Identifies the provider of the authentication key for unlocking this drive.
|
java.lang.Long |
getNodeID()
The node this drive is located.
|
Optional<java.lang.Long> |
getReservedSliceFileCapacity() |
java.lang.Long |
getSegmentFileSize()
Segment File Size of the drive, in bytes.
|
java.lang.String |
getSerial()
The manufacturer's serial number for this drive.
|
Optional<java.lang.Boolean> |
getSkipLabel()
Whether or not Element software will avoid writing to LBA 0 of this drive.
|
Optional<java.lang.Long> |
getSlot()
Slot number in the server chassis where this drive is located.
|
Optional<java.lang.Boolean> |
getSmartSsdWriteCapable() |
java.lang.Long |
getUsableCapacity()
Total Usable capacity of the drive, in bytes.
|
int |
hashCode() |
void |
setAssignedService(Optional<java.lang.Long> assignedService) |
void |
setAsyncResultIDs(java.lang.Long[] asyncResultIDs) |
void |
setAttributes(Attributes attributes) |
void |
setCapacity(java.lang.Long capacity) |
void |
setCustomerSliceFileCapacity(Optional<java.lang.Long> customerSliceFileCapacity) |
void |
setDriveFailureDetail(Optional<java.lang.String> driveFailureDetail) |
void |
setDriveID(java.lang.Long driveID) |
void |
setDriveSecurityFaultReason(Optional<java.lang.String> driveSecurityFaultReason) |
void |
setDriveStatus(java.lang.String driveStatus) |
void |
setDriveType(java.lang.String driveType) |
void |
setKeyID(Optional<java.util.UUID> keyID) |
void |
setKeyProviderID(Optional<java.lang.Long> keyProviderID) |
void |
setNodeID(java.lang.Long nodeID) |
void |
setReservedSliceFileCapacity(Optional<java.lang.Long> reservedSliceFileCapacity) |
void |
setSegmentFileSize(java.lang.Long segmentFileSize) |
void |
setSerial(java.lang.String serial) |
void |
setSkipLabel(Optional<java.lang.Boolean> skipLabel) |
void |
setSlot(Optional<java.lang.Long> slot) |
void |
setSmartSsdWriteCapable(Optional<java.lang.Boolean> smartSsdWriteCapable) |
void |
setUsableCapacity(java.lang.Long usableCapacity) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public Drive(java.lang.Long driveID, java.lang.Long nodeID, Optional<java.lang.Long> assignedService, java.lang.Long[] asyncResultIDs, java.lang.Long capacity, java.lang.String serial, Optional<java.lang.Long> slot, java.lang.String driveStatus, Optional<java.lang.String> driveFailureDetail, Optional<java.lang.String> driveSecurityFaultReason, Optional<java.lang.Long> keyProviderID, Optional<java.util.UUID> keyID, java.lang.String driveType, Optional<java.lang.Long> reservedSliceFileCapacity, Optional<java.lang.Long> customerSliceFileCapacity, Optional<java.lang.Boolean> smartSsdWriteCapable, Attributes attributes)
@Since(value="11.0") public Drive(java.lang.Long driveID, java.lang.Long nodeID, Optional<java.lang.Long> assignedService, java.lang.Long[] asyncResultIDs, java.lang.Long capacity, java.lang.Long usableCapacity, java.lang.Long segmentFileSize, java.lang.String serial, Optional<java.lang.Long> slot, java.lang.String driveStatus, Optional<java.lang.String> driveFailureDetail, Optional<java.lang.String> driveSecurityFaultReason, Optional<java.lang.Long> keyProviderID, Optional<java.util.UUID> keyID, java.lang.String driveType, Optional<java.lang.Long> reservedSliceFileCapacity, Optional<java.lang.Long> customerSliceFileCapacity, Optional<java.lang.Boolean> smartSsdWriteCapable, Attributes attributes)
@Since(value="12.0") public Drive(java.lang.Long driveID, java.lang.Long nodeID, Optional<java.lang.Long> assignedService, java.lang.Long[] asyncResultIDs, java.lang.Long capacity, java.lang.Long usableCapacity, java.lang.Long segmentFileSize, java.lang.String serial, Optional<java.lang.Long> slot, java.lang.String driveStatus, Optional<java.lang.String> driveFailureDetail, Optional<java.lang.String> driveSecurityFaultReason, Optional<java.lang.Long> keyProviderID, Optional<java.util.UUID> keyID, java.lang.String driveType, Optional<java.lang.Long> reservedSliceFileCapacity, Optional<java.lang.Long> customerSliceFileCapacity, Optional<java.lang.Boolean> smartSsdWriteCapable, Optional<java.lang.Boolean> skipLabel, Attributes attributes)
public java.lang.Long getDriveID()
public void setDriveID(java.lang.Long driveID)
public java.lang.Long getNodeID()
public void setNodeID(java.lang.Long nodeID)
public Optional<java.lang.Long> getAssignedService()
public void setAssignedService(Optional<java.lang.Long> assignedService)
public java.lang.Long[] getAsyncResultIDs()
public void setAsyncResultIDs(java.lang.Long[] asyncResultIDs)
public java.lang.Long getCapacity()
public void setCapacity(java.lang.Long capacity)
public java.lang.Long getUsableCapacity()
public void setUsableCapacity(java.lang.Long usableCapacity)
public java.lang.Long getSegmentFileSize()
public void setSegmentFileSize(java.lang.Long segmentFileSize)
public java.lang.String getSerial()
public void setSerial(java.lang.String serial)
public Optional<java.lang.Long> getSlot()
public void setSlot(Optional<java.lang.Long> slot)
public java.lang.String getDriveStatus()
public void setDriveStatus(java.lang.String driveStatus)
public Optional<java.lang.String> getDriveFailureDetail()
public void setDriveFailureDetail(Optional<java.lang.String> driveFailureDetail)
public Optional<java.lang.String> getDriveSecurityFaultReason()
public void setDriveSecurityFaultReason(Optional<java.lang.String> driveSecurityFaultReason)
public Optional<java.lang.Long> getKeyProviderID()
public void setKeyProviderID(Optional<java.lang.Long> keyProviderID)
public Optional<java.util.UUID> getKeyID()
public void setKeyID(Optional<java.util.UUID> keyID)
public java.lang.String getDriveType()
public void setDriveType(java.lang.String driveType)
public Optional<java.lang.Long> getReservedSliceFileCapacity()
public void setReservedSliceFileCapacity(Optional<java.lang.Long> reservedSliceFileCapacity)
public Optional<java.lang.Long> getCustomerSliceFileCapacity()
public void setCustomerSliceFileCapacity(Optional<java.lang.Long> customerSliceFileCapacity)
public Optional<java.lang.Boolean> getSmartSsdWriteCapable()
public void setSmartSsdWriteCapable(Optional<java.lang.Boolean> smartSsdWriteCapable)
public Optional<java.lang.Boolean> getSkipLabel()
public void setSkipLabel(Optional<java.lang.Boolean> skipLabel)
public Attributes getAttributes()
public void setAttributes(Attributes attributes)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static Drive.Builder builder()
public final Drive.Builder asBuilder()