Package com.vmware.vim.binding.vim.vm.device

Examples of com.vmware.vim.binding.vim.vm.device.VirtualController


         }
      }
      // Find all valid disk devices.
      for (VirtualDevice device : devices) {
         if (device instanceof VirtualDisk) {
             VirtualController controller = controllers.get(device.getControllerKey());
             if (controller != null) {
                diskIds.add(new DeviceId(controller, device));
             }
         }
      }
View Full Code Here


    * @return info
    */
   public static String getVirtualDeviceInfo(VirtualDevice device) {
      String type = device.getClass().getSimpleName();
      if (device instanceof VirtualController) {
         VirtualController controller = (VirtualController) device;
         return device.getDeviceInfo().getLabel() + ":" + type + " bus="
               + controller.getBusNumber() + ",key=" + device.getKey();
      } else {
         String backingInfo = null;
         VirtualDevice.BackingInfo backing = device.getBacking();
         if (backing instanceof VirtualDisk.FileBackingInfo) {
            if (device instanceof VirtualDisk) {
View Full Code Here

   public VirtualDeviceSpec
   attachVirtualDiskSpec(DeviceId deviceId,
                         VirtualDevice.BackingInfo backing,
                         boolean createDisk, DiskSize size) throws Exception {
      VirtualController controller = getVirtualController(deviceId);
      if (controller == null) {
         // Add the controller to the VM if it does not exist
         controller = attachVirtualController(deviceId);
         if (controller == null) {
            throw VcException.CONTROLLER_NOT_FOUND(deviceId.toString());
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.vim.vm.device.VirtualController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.