use of com.emc.storageos.model.host.HostRestRep in project coprhd-controller by CoprHD.
the class HostMapper method map.
public static HostRestRep map(Host host, ComputeElement computeElement, UCSServiceProfile serviceProfile, ComputeSystem computeSystem) {
HostRestRep to = map(host);
if (computeElement != null) {
StringBuffer buffer = new StringBuffer();
if (computeSystem != null) {
buffer.append(computeSystem.getLabel() + " : ");
}
buffer.append(computeElement.getLabel());
to.setComputeElementName(buffer.toString());
}
if (serviceProfile != null) {
StringBuffer buffer = new StringBuffer();
if (computeSystem != null) {
buffer.append(computeSystem.getLabel() + " : ");
}
buffer.append(serviceProfile.getLabel());
to.setServiceProfileName(buffer.toString());
}
return to;
}
Aggregations