public class DriveInfo
extends java.lang.Object
implements java.io.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(java.lang.Long capacity,
java.lang.Long usableCapacity,
java.lang.Long segmentFileSize,
java.lang.Long driveID,
java.lang.Long nodeID,
java.lang.String serial,
java.lang.String chassisSlot,
java.lang.Long slot,
java.lang.String status,
Optional<java.lang.String> driveFailureDetail,
Optional<java.lang.String> driveSecurityFaultReason,
Optional<java.lang.Long> keyProviderID,
Optional<java.util.UUID> keyID,
java.lang.String type,
Attributes attributes) |
DriveInfo(java.lang.Long capacity,
java.lang.Long driveID,
java.lang.Long nodeID,
java.lang.String serial,
java.lang.Long slot,
java.lang.String status,
Optional<java.lang.String> driveFailureDetail,
Optional<java.lang.String> driveSecurityFaultReason,
Optional<java.lang.Long> keyProviderID,
Optional<java.util.UUID> keyID,
java.lang.String type,
Attributes attributes) |
DriveInfo(java.lang.Long capacity,
java.lang.Long driveID,
java.lang.Long nodeID,
java.lang.String serial,
java.lang.String chassisSlot,
java.lang.Long slot,
java.lang.String status,
Optional<java.lang.String> driveFailureDetail,
Optional<java.lang.String> driveSecurityFaultReason,
Optional<java.lang.Long> keyProviderID,
Optional<java.util.UUID> keyID,
java.lang.String type,
Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
DriveInfo.Builder |
asBuilder() |
static DriveInfo.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Attributes |
getAttributes()
List of Name/Value pairs in JSON object format.
|
java.lang.Long |
getCapacity()
Total Raw capacity of the drive, in bytes.
|
java.lang.String |
getChassisSlot()
For HCI platforms, this value is the node letter and slot number in the server chassis where this drive is located.
|
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()
DriveID for this drive.
|
Optional<java.lang.String> |
getDriveSecurityFaultReason()
If enabling or disabling drive security failed, this is the reason why it failed.
|
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()
NodeID where this drive is located.
|
java.lang.Long |
getSegmentFileSize()
Segment File Size of the drive, in bytes.
|
java.lang.String |
getSerial()
Drive serial number.
|
java.lang.Long |
getSlot()
Slot number in the server chassis where this drive is located, or -1 if SATADimm used for internal metadata drive.
|
java.lang.String |
getStatus() |
java.lang.String |
getType() |
java.lang.Long |
getUsableCapacity()
Total Usable capacity of the drive, in bytes.
|
int |
hashCode() |
void |
setAttributes(Attributes attributes) |
void |
setCapacity(java.lang.Long capacity) |
void |
setChassisSlot(java.lang.String chassisSlot) |
void |
setDriveFailureDetail(Optional<java.lang.String> driveFailureDetail) |
void |
setDriveID(java.lang.Long driveID) |
void |
setDriveSecurityFaultReason(Optional<java.lang.String> driveSecurityFaultReason) |
void |
setKeyID(Optional<java.util.UUID> keyID) |
void |
setKeyProviderID(Optional<java.lang.Long> keyProviderID) |
void |
setNodeID(java.lang.Long nodeID) |
void |
setSegmentFileSize(java.lang.Long segmentFileSize) |
void |
setSerial(java.lang.String serial) |
void |
setSlot(java.lang.Long slot) |
void |
setStatus(java.lang.String status) |
void |
setType(java.lang.String type) |
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 DriveInfo(java.lang.Long capacity, java.lang.Long driveID, java.lang.Long nodeID, java.lang.String serial, java.lang.Long slot, java.lang.String status, Optional<java.lang.String> driveFailureDetail, Optional<java.lang.String> driveSecurityFaultReason, Optional<java.lang.Long> keyProviderID, Optional<java.util.UUID> keyID, java.lang.String type, Attributes attributes)
@Since(value="10.0") public DriveInfo(java.lang.Long capacity, java.lang.Long driveID, java.lang.Long nodeID, java.lang.String serial, java.lang.String chassisSlot, java.lang.Long slot, java.lang.String status, Optional<java.lang.String> driveFailureDetail, Optional<java.lang.String> driveSecurityFaultReason, Optional<java.lang.Long> keyProviderID, Optional<java.util.UUID> keyID, java.lang.String type, Attributes attributes)
@Since(value="11.0") public DriveInfo(java.lang.Long capacity, java.lang.Long usableCapacity, java.lang.Long segmentFileSize, java.lang.Long driveID, java.lang.Long nodeID, java.lang.String serial, java.lang.String chassisSlot, java.lang.Long slot, java.lang.String status, Optional<java.lang.String> driveFailureDetail, Optional<java.lang.String> driveSecurityFaultReason, Optional<java.lang.Long> keyProviderID, Optional<java.util.UUID> keyID, java.lang.String type, Attributes attributes)
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.Long getDriveID()
public void setDriveID(java.lang.Long driveID)
public java.lang.Long getNodeID()
public void setNodeID(java.lang.Long nodeID)
public java.lang.String getSerial()
public void setSerial(java.lang.String serial)
public java.lang.String getChassisSlot()
public void setChassisSlot(java.lang.String chassisSlot)
public java.lang.Long getSlot()
public void setSlot(java.lang.Long slot)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
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 getType()
public void setType(java.lang.String type)
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 DriveInfo.Builder builder()
public final DriveInfo.Builder asBuilder()