com.sun.xml.ws.commons.virtualbox
Class IStorageController

java.lang.Object
  extended by com.sun.xml.ws.commons.virtualbox.VBoxObject
      extended by com.sun.xml.ws.commons.virtualbox.IStorageController

public class IStorageController
extends VBoxObject

Represents a storage controller that is attached to a virtual machine (IMachine). Just as hard disks are attached to storage controllers in a real computer, virtual hard disks (represented by IHardDisk) are attached to virtual storage controllers, represented by this interface. VirtualBox supports three types of virtual storage controller hardware: IDE, SCSI, and SATA (see #bus). Depending on which of these three is used, certain sub-types are available and can be selected in #controllerType.


Field Summary
 
Fields inherited from class com.sun.xml.ws.commons.virtualbox.VBoxObject
_this, port
 
Constructor Summary
IStorageController(String _this, VboxPortType port)
           
 
Method Summary
 StorageBus getBus()
          The connection type of the storage controller.
 StorageControllerType getControllerType()
          Type of the virtual storage controller.
 int GetIDEEmulationPort(int devicePosition)
          Gets the corresponding port number which is emulated as an IDE device.The @a devicePosition is not in the range 0 to 3.The storage controller type is not SATAIntelAhci.
 long getInstance()
          The instance number of the device in the running VM.
 long getMaxDevicesPerPortCount()
          Maximum number of devices which can be attached to one port.
 long getMaxPortCount()
          Maximum number of ports that IStorageController#portCount can be set to.
 long getMinPortCount()
          Minimum number of ports that IStorageController#portCount can be set to.
 String getName()
          Name of the storage controller, as originally specified with IMachine.addStorageController(java.lang.String, com.sun.xml.ws.commons.virtualbox.StorageBus).
 long getPortCount()
          The number of currently usable ports on the controller.
 void setControllerType(StorageControllerType value)
          Type of the virtual storage controller.
 void SetIDEEmulationPort(int devicePosition, int portNumber)
          Sets the port number which is emulated as an IDE device.The @a devicePosition is not in the range 0 to 3 or the
 void setInstance(long value)
          The instance number of the device in the running VM.
 void setPortCount(long value)
          The number of currently usable ports on the controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IStorageController

public IStorageController(String _this,
                          VboxPortType port)
Method Detail

getName

public String getName()
Name of the storage controller, as originally specified with IMachine.addStorageController(java.lang.String, com.sun.xml.ws.commons.virtualbox.StorageBus). This then uniquely identifies this controller with other method calls such as IMachine.attachHardDisk(java.util.UUID, java.lang.String, int, int).


getMaxDevicesPerPortCount

public long getMaxDevicesPerPortCount()
Maximum number of devices which can be attached to one port.


getMinPortCount

public long getMinPortCount()
Minimum number of ports that IStorageController#portCount can be set to.


getMaxPortCount

public long getMaxPortCount()
Maximum number of ports that IStorageController#portCount can be set to.


getInstance

public long getInstance()
The instance number of the device in the running VM.


setInstance

public void setInstance(long value)
The instance number of the device in the running VM.


getPortCount

public long getPortCount()
The number of currently usable ports on the controller. The minimum and maximum number of ports for one controller are stored in IStorageController#minPortCount and IStorageController#maxPortCount.


setPortCount

public void setPortCount(long value)
The number of currently usable ports on the controller. The minimum and maximum number of ports for one controller are stored in IStorageController#minPortCount and IStorageController#maxPortCount.


getBus

public StorageBus getBus()
The connection type of the storage controller.


getControllerType

public StorageControllerType getControllerType()
Type of the virtual storage controller. Depending on this value, VirtualBox will provide a different virtual storage controller hardware to the guest. For SCSI controllers, the default type is LsiLogic.


setControllerType

public void setControllerType(StorageControllerType value)
Type of the virtual storage controller. Depending on this value, VirtualBox will provide a different virtual storage controller hardware to the guest. For SCSI controllers, the default type is LsiLogic.


GetIDEEmulationPort

public int GetIDEEmulationPort(int devicePosition)
Gets the corresponding port number which is emulated as an IDE device.The @a devicePosition is not in the range 0 to 3.The storage controller type is not SATAIntelAhci.

Parameters:
devicePosition -
Returns:

SetIDEEmulationPort

public void SetIDEEmulationPort(int devicePosition,
                                int portNumber)
Sets the port number which is emulated as an IDE device.The @a devicePosition is not in the range 0 to 3 or the

Parameters:
portNumber -
devicePosition -


Copyright © 2009. All Rights Reserved.