Class Win32DiskDrive
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.storage.Win32DiskDrive
Immutable representation of a Physical disk on a Windows system.
Fields correspond to properties retrieved from the Win32_DiskDrive WMI class.
Usage examples
// Build a new instance
Win32DiskDrive drive = Win32DiskDrive.builder()
.deviceId("\\\\.\\PHYSICALDRIVE0")
.caption("Samsung SSD 970 EVO")
.model("MZ-V7E1T0")
.size(1000204886016L)
.firmwareRevision("2B2QEXM7")
.serialNumber("S4EVNX0M123456")
.partitions(3)
.status("OK")
.interfaceType("NVMe")
.pnpDeviceId("PCI\\VEN_144D&DEV_A808&SUBSYS_0A0E144D&REV_01\\4&1A2B3C4D&0&000000")
.build();
// Create a modified copy
Win32DiskDrive updatedDrive = drive.toBuilder()
.size(2000409772032L)
.build();
See Win32DiskPartition for information about partitions on this disk.
See Win32LogicalDisk for information about the logical volumes on this disk.
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionArray of capabilities of the media access device.List of more detailed explanations for any of the access device features indicated in thecapabilitiesarray.(package private) @Nullable StringShort description of the object.(package private) @Nullable StringUnique identifier of the disk drive with other devices on the system.(package private) @Nullable StringRevision of the disk drive firmware assigned by the manufacturer.(package private) @Nullable StringInterface type of the physical disk drive (e.g., SCSI, IDE, USB, NVMe).(package private) @Nullable StringManufacturer’s model number of the disk drive.(package private) @Nullable LongNumber of partitions on this physical disk drive recognized by the operating system.(package private) @Nullable StringWindows Plug and Play device identifier of the logical device.(package private) @Nullable StringNumber allocated by the manufacturer to identify the physical media.(package private) @Nullable BigIntegerSize of the disk drive, calculated by multiplying the total number of cylinders, tracks in each cylinder, sectors in each track, and bytes in each sector.(package private) @Nullable StringCurrent operational status of the physical disk. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
Unique identifier of the disk drive with other devices on the system. -
caption
Short description of the object. -
model
Manufacturer’s model number of the disk drive. -
size
Size of the disk drive, calculated by multiplying the total number of cylinders, tracks in each cylinder, sectors in each track, and bytes in each sector. -
firmwareRevision
Revision of the disk drive firmware assigned by the manufacturer. -
serialNumber
Number allocated by the manufacturer to identify the physical media. -
partitions
Number of partitions on this physical disk drive recognized by the operating system. -
status
Current operational status of the physical disk.Possible OPERATIONAL values:
- "OK"
- "Degraded"
- "Pred Fail"
Possible NON-OPERATIONAL values:
- "Unknown"
- "Error"
- "Starting"
- "Stopping"
- "Service"
Possible OTHER values:
- "Stressed"
- "NonRecover"
- "No Contact"
- "Lost Comm"
-
interfaceType
Interface type of the physical disk drive (e.g., SCSI, IDE, USB, NVMe). -
pnpDeviceId
Windows Plug and Play device identifier of the logical device. -
capabilities
Array of capabilities of the media access device.Possible Values:
- 1 - Other
- 2 - Sequential Access
- 3 - Random Access
- 4 - Supports Writing
- 5 - Encryption
- 6 - Compression
- 7 - Supports Removable Media
- 8 - Manual Cleaning
- 9 - Automatic Cleaning
- 10 - S.M.A.R.T Notification
- 11 - Supports Dual Sided Media
- 12 - Pre-dismount Eject Not Required
-
capabilityDescriptions
List of more detailed explanations for any of the access device features indicated in thecapabilitiesarray. Note, each entry of this array is related to the entry in thecapabilitiesarray that is located at the same index.
-
-
Constructor Details
-
Win32DiskDrive
public Win32DiskDrive()
-
-
Method Details
-
toString
-