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);
}
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();
}
Aggregations