Search in sources :

Example 1 with PnfResourceStructure

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;
}
Also used : VfResourceStructure(org.onap.so.asdc.installer.VfResourceStructure) IResourceInstance(org.onap.sdc.api.notification.IResourceInstance) PnfResourceStructure(org.onap.so.asdc.installer.PnfResourceStructure) PnfResourceStructure(org.onap.so.asdc.installer.PnfResourceStructure) ResourceStructure(org.onap.so.asdc.installer.ResourceStructure) VfResourceStructure(org.onap.so.asdc.installer.VfResourceStructure) ToscaResourceStructure(org.onap.so.asdc.installer.ToscaResourceStructure)

Aggregations

IResourceInstance (org.onap.sdc.api.notification.IResourceInstance)1 PnfResourceStructure (org.onap.so.asdc.installer.PnfResourceStructure)1 ResourceStructure (org.onap.so.asdc.installer.ResourceStructure)1 ToscaResourceStructure (org.onap.so.asdc.installer.ToscaResourceStructure)1 VfResourceStructure (org.onap.so.asdc.installer.VfResourceStructure)1