Search in sources :

Example 1 with HostRequest

use of com.emc.storageos.vnxe.requests.HostRequest in project coprhd-controller by CoprHD.

the class VNXeApiClient method modifyHostLunHlu.

/**
 * Modify host lun HLU
 *
 * @param hostId Host Id
 * @param hostLunId HostLun Id
 * @param hlu The new hlu value
 */
public void modifyHostLunHlu(String hostId, String hostLunId, int hlu) {
    HostRequest req = new HostRequest(_khClient, hostId);
    ModifyHostLUNsParam param = new ModifyHostLUNsParam();
    HostLunModifyParam hostLunParam = new HostLunModifyParam();
    hostLunParam.setHlu(hlu);
    VNXeBase hostLun = new VNXeBase(hostLunId);
    hostLunParam.setHostLun(hostLun);
    List<HostLunModifyParam> parmList = new ArrayList<HostLunModifyParam>();
    parmList.add(hostLunParam);
    param.setHostLunModifyList(parmList);
    req.modifyHostLun(param);
}
Also used : HostLunModifyParam(com.emc.storageos.vnxe.models.HostLunModifyParam) VNXeBase(com.emc.storageos.vnxe.models.VNXeBase) ArrayList(java.util.ArrayList) ModifyHostLUNsParam(com.emc.storageos.vnxe.models.ModifyHostLUNsParam) HostRequest(com.emc.storageos.vnxe.requests.HostRequest) DeleteHostRequest(com.emc.storageos.vnxe.requests.DeleteHostRequest)

Example 2 with HostRequest

use of com.emc.storageos.vnxe.requests.HostRequest in project coprhd-controller by CoprHD.

the class VNXeApiClient method getHostById.

/**
 * get host based on host id
 */
public VNXeHost getHostById(String hostId) {
    _logger.info("getting host by host id: " + hostId);
    HostRequest req = new HostRequest(_khClient, hostId);
    return req.get();
}
Also used : HostRequest(com.emc.storageos.vnxe.requests.HostRequest) DeleteHostRequest(com.emc.storageos.vnxe.requests.DeleteHostRequest)

Aggregations

DeleteHostRequest (com.emc.storageos.vnxe.requests.DeleteHostRequest)2 HostRequest (com.emc.storageos.vnxe.requests.HostRequest)2 HostLunModifyParam (com.emc.storageos.vnxe.models.HostLunModifyParam)1 ModifyHostLUNsParam (com.emc.storageos.vnxe.models.ModifyHostLUNsParam)1 VNXeBase (com.emc.storageos.vnxe.models.VNXeBase)1 ArrayList (java.util.ArrayList)1