Class Win32LogicalDisk
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.storage.Win32LogicalDisk
Immutable representation of a Logical disk volume on a Windows system.
Fields correspond to properties retrieved from the Win32_LogicalDisk WMI class.
Usage examples
// Build a new LogicalDisk instance
Win32LogicalDisk lDisk = Win32LogicalDisk.builder()
.deviceId("C:")
.driveType(3)
.fileSystem("NTFS")
.size(1000204886016L)
.build();
// Create a modified copy
Win32LogicalDisk updatedDisk = drive.toBuilder()
.size(2000409772032L)
.fileSystem("ReFS")
.build();
See Win32DiskDrive for information about physical disks in the system.
See Win32DiskPartition for information about partitions in a physical disk.
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable BooleanIndicates if the logical volume exists as a single compressed entity (e.g., DoubleSpace).(package private) @Nullable StringDescription of the logical disk object.(package private) @Nullable StringUnique identifier of the logical disk from other devices on the system.(package private) @Nullable LongNumeric value that corresponds to the type of disk drive this logical disk represents.(package private) @Nullable StringFile system on the logical disk.(package private) @Nullable BigIntegerFree space, in bytes, available on the logical disk.(package private) @Nullable LongType of media currently present in the logical drive.(package private) @Nullable BigIntegerSize of the disk drive in bytes.(package private) @Nullable BooleanIndicates whether this volume supports disk quotas.(package private) @Nullable BooleanIndicates whether the logical disk supports file-based compression (e.g., NTFS).(package private) @Nullable StringVolume name of the logical disk.(package private) @Nullable StringVolume serial number of the logical disk. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
Unique identifier of the logical disk from other devices on the system. Appears as the drive letter assigned to the partition in the physical disk Example:"C:" -
description
Description of the logical disk object. -
driveType
Numeric value that corresponds to the type of disk drive this logical disk represents.- 0 – Unknown
- 1 – No Root Directory
- 2 – Removable Disk
- 3 – Local Disk
- 4 – Network Drive
- 5 – Compact Disc
- 6 – RAM Disk
Data type: uint32
-
mediaType
Type of media currently present in the logical drive. Value corresponds to a member of the MEDIA_TYPE enumeration defined inWinioctl.h.Visit the microsoft documentation stated at the class level to know about the possible values. -
fileSystem
File system on the logical disk. Example:"NTFS","FAT32","ReFS" -
size
Size of the disk drive in bytes. -
freeSpace
Free space, in bytes, available on the logical disk. -
compressed
Indicates if the logical volume exists as a single compressed entity (e.g., DoubleSpace). If file-based compression is supported (e.g., NTFS), this value isfalse. -
supportsFileBasedCompression
@SerializedName("SupportsFileBasedCompression") @Nullable @Nullable Boolean supportsFileBasedCompressionIndicates whether the logical disk supports file-based compression (e.g., NTFS). -
supportsDiskQuotas
Indicates whether this volume supports disk quotas. -
volumeName
Volume name of the logical disk. Example:"Local Disk" -
volumeSerialNumber
Volume serial number of the logical disk.
-
-
Constructor Details
-
Win32LogicalDisk
public Win32LogicalDisk()
-
-
Method Details
-
isCompressed
-
supportsFileBasedCompression
-
supportsDiskQuotas
-
toString
-