Search in sources :

Example 16 with HostStorageAPI

use of com.iwave.ext.vmware.HostStorageAPI in project coprhd-controller by CoprHD.

the class SetMultipathPolicy method execute.

@Override
public void execute() throws Exception {
    debug("Executing: %s", getDetail());
    for (HostSystem host : hostDisks.keySet()) {
        try {
            HostStorageAPI storageAPI = new HostStorageAPI(host);
            storageAPI.setMultipathPolicy(hostDisks.get(host), multipathPolicy);
        } catch (Exception e) {
            logWarn("vmware.support.multipath.policy.failed", multipathPolicy, hostDisks.get(host).getCanonicalName(), host.getName());
        }
    }
}
Also used : HostSystem(com.vmware.vim25.mo.HostSystem) HostStorageAPI(com.iwave.ext.vmware.HostStorageAPI)

Aggregations

HostStorageAPI (com.iwave.ext.vmware.HostStorageAPI)16 HostSystem (com.vmware.vim25.mo.HostSystem)8 HostScsiDisk (com.vmware.vim25.HostScsiDisk)5 RemoteException (java.rmi.RemoteException)5 Vcenter (com.emc.storageos.db.client.model.Vcenter)4 VcenterDataCenter (com.emc.storageos.db.client.model.VcenterDataCenter)4 VCenterAPI (com.iwave.ext.vmware.VCenterAPI)4 ComputeSystemControllerException (com.emc.storageos.computesystemcontroller.exceptions.ComputeSystemControllerException)3 CoordinatorException (com.emc.storageos.coordinator.exceptions.CoordinatorException)3 Host (com.emc.storageos.db.client.model.Host)3 ClientControllerException (com.emc.storageos.exceptions.ClientControllerException)3 DeviceControllerException (com.emc.storageos.exceptions.DeviceControllerException)3 APIException (com.emc.storageos.svcs.errorhandling.resources.APIException)3 InternalException (com.emc.storageos.svcs.errorhandling.resources.InternalException)3 ControllerException (com.emc.storageos.volumecontroller.ControllerException)3 WorkflowException (com.emc.storageos.workflow.WorkflowException)3 Datastore (com.vmware.vim25.mo.Datastore)3 BlockObject (com.emc.storageos.db.client.model.BlockObject)2 ExportGroup (com.emc.storageos.db.client.model.ExportGroup)2 VMWareException (com.iwave.ext.vmware.VMWareException)2