use of org.onap.so.asdc.installer.PnfResourceStructure in project so by onap.
the class ASDCController method getResourceStructure.
private ResourceStructure getResourceStructure(INotificationData iNotif, IResourceInstance resource, String resourceType) {
if ("VF".equals(resourceType)) {
return new VfResourceStructure(iNotif, resource);
}
if ("PNF".equals(resourceType)) {
return new PnfResourceStructure(iNotif, resource);
}
logger.info("No resources found for Service: {}", iNotif.getServiceUUID());
ResourceStructure resourceStructure = new VfResourceStructure(iNotif, new ResourceInstance());
resourceStructure.setResourceType(ResourceType.OTHER);
return resourceStructure;
}
Aggregations