use of com.vmware.vim25.RuntimeFault 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);
}
}
use of com.vmware.vim25.RuntimeFault in project coprhd-controller by CoprHD.
the class TestVcenter method main.
public static void main(String[] args) throws MalformedURLException, InvalidProperty, RuntimeFault, RemoteException {
VCenterAPI vcenterAPI = getVcenterApi("lglw1045.lss.emc.com", "root", "vmware");
try {
Datastore ds = vcenterAPI.findDatastore("DC-Simulator-1", "ds-1");
DatastoreInfo dsInfo = ds.getInfo();
if (dsInfo != null) {
return;
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
Aggregations