private static void setVduLifeCycleEvents( VirtualDeploymentUnit virtualDeploymentUnit, VirtualDeploymentUnit vdu_new) { HashSet<LifecycleEvent> lifecycleEvents = new HashSet<>(); for (LifecycleEvent lifecycleEvent : virtualDeploymentUnit.getLifecycle_event()) { LifecycleEvent lifecycleEvent_new = new LifecycleEvent(); lifecycleEvent_new.setEvent(lifecycleEvent.getEvent()); lifecycleEvent_new.setLifecycle_events(lifecycleEvent.getLifecycle_events()); lifecycleEvents.add(lifecycleEvent_new); } vdu_new.setLifecycle_event(lifecycleEvents); }
for (String lifecycleName : lifecycleMap.keySet()) { LifecycleEvent lifecycleEvent = new LifecycleEvent();
private static void setLifeCycleEvents( VirtualNetworkFunctionDescriptor vnfd, VirtualNetworkFunctionRecord virtualNetworkFunctionRecord) { virtualNetworkFunctionRecord.setLifecycle_event(new LinkedHashSet<LifecycleEvent>()); HashSet<LifecycleEvent> lifecycleEvents = new HashSet<>(); for (LifecycleEvent lifecycleEvent : vnfd.getLifecycle_event()) { LifecycleEvent lifecycleEvent_new = new LifecycleEvent(); lifecycleEvent_new.setEvent(lifecycleEvent.getEvent()); lifecycleEvent_new.setLifecycle_events(new ArrayList<>()); for (String event : lifecycleEvent.getLifecycle_events()) { lifecycleEvent_new.getLifecycle_events().add(event); } log.debug( "Found SCRIPTS for EVENT " + lifecycleEvent_new.getEvent() + ": " + lifecycleEvent_new.getLifecycle_events().size()); lifecycleEvents.add(lifecycleEvent_new); } virtualNetworkFunctionRecord.setLifecycle_event(lifecycleEvents); }
LifecycleEvent event = new LifecycleEvent(); event.setEvent(Event.INSTANTIATE); event.setLifecycle_events(new ArrayList<>());
VirtualNetworkFunctionDescriptor virtualNetworkFunctionDescriptor = networkServiceDescriptor.getVnfd().iterator().next(); LifecycleEvent event = new LifecycleEvent(); event.setEvent(Event.ALLOCATE); event.setLifecycle_events(new ArrayList<>());
new HashSet<LifecycleEvent>() { LifecycleEvent lifecycleEvent = new LifecycleEvent(); lifecycleEvent.setEvent(Event.INSTANTIATE); lifecycleEvent.setLifecycle_events(