org.virtualbox_7_0
Class IHostDrive

java.lang.Object
  extended by org.virtualbox_7_0.IUnknown
      extended by org.virtualbox_7_0.IHostDrive

public class IHostDrive
extends IUnknown

The IHostDrive interface represents the drive of the physical machine. It is not a complete medium description and, therefore, it is not IMedium based. The interface is used to get information about a host drive and its partitioning. NOTE: The object operates in limited mode if the user cannot open the drive and parse the partition table. In limited mode on thegetDrivePath()andgetModel()attributes can be accessed, the rest will fail with E_ACCESSDENIED. Interface ID: {70E2E0C3-332C-4D72-B822-2DB16E2CB31B}


Field Summary
 
Fields inherited from class org.virtualbox_7_0.IUnknown
obj, objMgr, port
 
Constructor Summary
IHostDrive(java.lang.String wrapped, org.virtualbox_7_0.ObjectRefManager objMgr, org.virtualbox_7_0.jaxws.VboxPortType port)
           
 
Method Summary
 java.lang.String getDrivePath()
          The path of the drive.
 java.lang.String getModel()
          The model string of the drive if available.
 PartitioningType getPartitioningType()
          The scheme of the partitions the disk has.
 java.util.List<IHostDrivePartition> getPartitions()
          List of partitions available on the host drive.
 java.lang.Long getSectorSize()
          The size of the sector in bytes.
 java.lang.Long getSize()
          The size of the disk in bytes.
 java.lang.String getUuid()
          The GUID of the disk.
static IHostDrive queryInterface(IUnknown obj)
           
 
Methods inherited from class org.virtualbox_7_0.IUnknown
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IHostDrive

public IHostDrive(java.lang.String wrapped,
                  org.virtualbox_7_0.ObjectRefManager objMgr,
                  org.virtualbox_7_0.jaxws.VboxPortType port)
Method Detail

getDrivePath

public java.lang.String getDrivePath()
The path of the drive. Platform dependent.

Returns:
String

getPartitioningType

public PartitioningType getPartitioningType()
The scheme of the partitions the disk has.

Returns:
org.virtualbox_7_0.PartitioningType

getUuid

public java.lang.String getUuid()
The GUID of the disk.

Returns:
String

getSectorSize

public java.lang.Long getSectorSize()
The size of the sector in bytes.

Returns:
Long

getSize

public java.lang.Long getSize()
The size of the disk in bytes.

Returns:
Long

getModel

public java.lang.String getModel()
The model string of the drive if available.

Returns:
String

getPartitions

public java.util.List<IHostDrivePartition> getPartitions()
List of partitions available on the host drive.

Returns:
List<org.virtualbox_7_0.IHostDrivePartition>

queryInterface

public static IHostDrive queryInterface(IUnknown obj)