use of com.vmware.vim25.mo.HostStorageSystem in project coprhd-controller by CoprHD.
the class HostStorageAPI method refreshStorage.
/**
* Refreshes the storage on the host.
*/
public void refreshStorage() {
try {
HostStorageSystem storageSystem = getStorageSystem();
storageSystem.rescanAllHba();
storageSystem.rescanVmfs();
} catch (HostConfigFault e) {
throw new VMWareException(e);
} catch (RuntimeFault e) {
throw new VMWareException(e);
} catch (RemoteException e) {
throw new VMWareException(e);
}
}
use of com.vmware.vim25.mo.HostStorageSystem 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);
}
}
use of com.vmware.vim25.mo.HostStorageSystem 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);
}
}
Aggregations