* @return the component request object
*/
private HostRequest getRequest(Map<String, Object> properties) {
if (properties == null) {
return new HostRequest(null, null, null);
}
HostRequest hostRequest = new HostRequest(
(String) properties.get(HOST_NAME_PROPERTY_ID),
(String) properties.get(HOST_CLUSTER_NAME_PROPERTY_ID),
null);
hostRequest.setPublicHostName((String) properties.get(HOST_PUBLIC_NAME_PROPERTY_ID));
hostRequest.setRackInfo((String) properties.get(HOST_RACK_INFO_PROPERTY_ID));
Object o = properties.get(HOST_MAINTENANCE_STATE_PROPERTY_ID);
if (null != o)
hostRequest.setMaintenanceState(o.toString());
ConfigurationRequest cr = getConfigurationRequest("Hosts", properties);
hostRequest.setDesiredConfig(cr);
return hostRequest;
}