Search in sources :

Example 1 with HostMultipathInfoFixedLogicalUnitPolicy

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

the class HostStorageAPI method createMultipathPolicy.

/**
 * Create a multipath policy based on the passed policy name
 *
 * @param name policy name
 * @return multipath policy
 */
public HostMultipathInfoLogicalUnitPolicy createMultipathPolicy(String name) {
    if (StringUtils.equalsIgnoreCase(name, VMW_PSP_FIXED)) {
        HostMultipathInfoFixedLogicalUnitPolicy policy = new HostMultipathInfoFixedLogicalUnitPolicy();
        policy.setPolicy(name);
        policy.setPrefer("");
        return policy;
    } else {
        HostMultipathInfoLogicalUnitPolicy policy = new HostMultipathInfoLogicalUnitPolicy();
        policy.setPolicy(name);
        return policy;
    }
}
Also used : HostMultipathInfoLogicalUnitPolicy(com.vmware.vim25.HostMultipathInfoLogicalUnitPolicy) HostMultipathInfoFixedLogicalUnitPolicy(com.vmware.vim25.HostMultipathInfoFixedLogicalUnitPolicy)

Aggregations

HostMultipathInfoFixedLogicalUnitPolicy (com.vmware.vim25.HostMultipathInfoFixedLogicalUnitPolicy)1 HostMultipathInfoLogicalUnitPolicy (com.vmware.vim25.HostMultipathInfoLogicalUnitPolicy)1