Search in sources :

Example 6 with HostConfigFault

use of com.vmware.vim25.HostConfigFault in project coprhd-controller by CoprHD.

the class HostStorageAPI method attachScsiLun.

/**
 * Attaches the lun.
 */
public void attachScsiLun(HostScsiDisk disk) {
    try {
        HostStorageSystem storageSystem = getStorageSystem();
        storageSystem.attachScsiLun(disk.getUuid());
    } catch (HostConfigFault e) {
        throw new VMWareException(e);
    } catch (RuntimeFault e) {
        throw new VMWareException(e);
    } catch (RemoteException e) {
        throw new VMWareException(e);
    }
}
Also used : HostStorageSystem(com.vmware.vim25.mo.HostStorageSystem) RuntimeFault(com.vmware.vim25.RuntimeFault) RemoteException(java.rmi.RemoteException) HostConfigFault(com.vmware.vim25.HostConfigFault)

Example 7 with HostConfigFault

use of com.vmware.vim25.HostConfigFault in project coprhd-controller by CoprHD.

the class HostStorageAPI method detachScsiLun.

/**
 * Detaches the lun.
 */
public void detachScsiLun(HostScsiDisk disk) {
    try {
        HostStorageSystem storageSystem = getStorageSystem();
        storageSystem.detachScsiLun(disk.getUuid());
    } catch (HostConfigFault e) {
        throw new VMWareException(e);
    } catch (RuntimeFault e) {
        throw new VMWareException(e);
    } catch (RemoteException e) {
        throw new VMWareException(e);
    }
}
Also used : HostStorageSystem(com.vmware.vim25.mo.HostStorageSystem) RuntimeFault(com.vmware.vim25.RuntimeFault) RemoteException(java.rmi.RemoteException) HostConfigFault(com.vmware.vim25.HostConfigFault)

Aggregations

HostConfigFault (com.vmware.vim25.HostConfigFault)7 HostStorageSystem (com.vmware.vim25.mo.HostStorageSystem)7 RuntimeFault (com.vmware.vim25.RuntimeFault)6 RemoteException (java.rmi.RemoteException)6 VcenterObjectConnectionException (com.emc.storageos.vcentercontroller.exceptions.VcenterObjectConnectionException)1 VcenterObjectNotFoundException (com.emc.storageos.vcentercontroller.exceptions.VcenterObjectNotFoundException)1 VcenterServerConnectionException (com.emc.storageos.vcentercontroller.exceptions.VcenterServerConnectionException)1 VcenterSystemException (com.emc.storageos.vcentercontroller.exceptions.VcenterSystemException)1 HostMultipathInfoLogicalUnitPolicy (com.vmware.vim25.HostMultipathInfoLogicalUnitPolicy)1 HostScsiDisk (com.vmware.vim25.HostScsiDisk)1 HostStorageDeviceInfo (com.vmware.vim25.HostStorageDeviceInfo)1 NotFound (com.vmware.vim25.NotFound)1 ScsiLun (com.vmware.vim25.ScsiLun)1 VmfsDatastoreCreateSpec (com.vmware.vim25.VmfsDatastoreCreateSpec)1 VmfsDatastoreInfo (com.vmware.vim25.VmfsDatastoreInfo)1 VmfsDatastoreOption (com.vmware.vim25.VmfsDatastoreOption)1 Datastore (com.vmware.vim25.mo.Datastore)1 HostDatastoreSystem (com.vmware.vim25.mo.HostDatastoreSystem)1 HostSystem (com.vmware.vim25.mo.HostSystem)1