Iterator<LogicalChannel> channelIter = composite.getChannels().iterator(); while (channelIter.hasNext()) { LogicalChannel channel = channelIter.next();
Iterator<LogicalChannel> channelIter = composite.getChannels().iterator(); while (channelIter.hasNext()) { LogicalChannel channel = channelIter.next();
Iterator<LogicalChannel> channelIter = composite.getChannels().iterator(); while (channelIter.hasNext()) { LogicalChannel channel = channelIter.next();
public void selectBindings(LogicalCompositeComponent domain) throws BindingSelectionException { if (RuntimeMode.CONTROLLER != info.getRuntimeMode() || disable) { // there are no remote wires when the domain is contained withing a single VM (including Participant mode, which has a runtime domain) return; } Collection<LogicalComponent<?>> components = domain.getComponents(); for (LogicalComponent<?> component : components) { if (component.getState() == LogicalState.NEW) { selectBindings(component); } } for (LogicalChannel channel : domain.getChannels()) { selectBinding(channel); } }
wires.stream().filter(wire -> NEW == wire.getState()).forEach(wire -> wire.setState(PROVISIONED)); for (LogicalChannel channel : composite.getChannels()) { if (NEW == channel.getState()) { channel.setState(PROVISIONED);
wires.stream().filter(wire -> NEW == wire.getState()).forEach(wire -> wire.setState(PROVISIONED)); for (LogicalChannel channel : composite.getChannels()) { if (NEW == channel.getState()) { channel.setState(PROVISIONED);
public void allocate(LogicalComponent<?> component, DeploymentPlan plan) throws AllocationException { if (Names.LOCAL_ZONE.equals(component.getZone())) { if (component instanceof LogicalCompositeComponent) { LogicalCompositeComponent composite = (LogicalCompositeComponent) component; for (LogicalComponent<?> child : composite.getComponents()) { allocate(child, plan); } for (LogicalResource<?> resource : composite.getResources()) { allocate(resource, plan); } for (LogicalChannel channel : composite.getChannels()) { allocate(channel, plan); } } component.setZone(zoneName); } }
public void allocate(LogicalComponent<?> component, DeploymentPlan plan) throws AllocationException { if (Names.LOCAL_ZONE.equals(component.getZone())) { if (component instanceof LogicalCompositeComponent) { LogicalCompositeComponent composite = (LogicalCompositeComponent) component; for (LogicalComponent<?> child : composite.getComponents()) { allocate(child, plan); } for (LogicalResource<?> resource : composite.getResources()) { allocate(resource, plan); } for (LogicalChannel channel : composite.getChannels()) { allocate(channel, plan); } } selectZone(component, plan); } }
/** * Recursively sets the deployable composite the logical component was instantiated from. * * @param component the logical component * @param deployable the deployable */ private void setDeployable(LogicalComponent<?> component, QName deployable) { if (component instanceof LogicalCompositeComponent) { LogicalCompositeComponent composite = (LogicalCompositeComponent) component; for (LogicalComponent<?> child : composite.getComponents()) { setDeployable(child, deployable); } for (LogicalResource<?> resource : composite.getResources()) { resource.setDeployable(deployable); } for (LogicalChannel channel : composite.getChannels()) { channel.setDeployable(deployable); } } component.setDeployable(deployable); }
for (LogicalChannel channel : composite.getChannels()) { if (channel.getDefinition() != null && !contributionUri.equals(channel.getDefinition().getContributionUri())) { continue; // composite is not part of the contribution being undeployed
for (LogicalChannel channel : composite.getChannels()) { if (channel.getDefinition() != null && !contributionUri.equals(channel.getDefinition().getContributionUri())) { continue; // composite is not part of the contribution being undeployed
/** * Delegates to the Allocator to determine which runtimes to deploy the given collection of components to. * * @param domain the domain component * @param plan the deployment plan * @throws AllocationException if an allocation error occurs */ private void allocate(LogicalCompositeComponent domain, DeploymentPlan plan) throws AllocationException { if (allocator == null) { // allocator is an optional extension return; } for (LogicalResource<?> resource : domain.getResources()) { if (resource.getState() == LogicalState.NEW) { allocator.allocate(resource, plan); } } for (LogicalChannel channel : domain.getChannels()) { if (channel.getState() == LogicalState.NEW) { allocator.allocate(channel, plan); } } Collection<LogicalComponent<?>> components = domain.getComponents(); for (LogicalComponent<?> component : components) { if (component.getState() == LogicalState.NEW) { allocator.allocate(component, plan); } } }
for (LogicalChannel channel : composite.getChannels()) { if (deployable.equals(channel.getDeployable())) { channel.setState(LogicalState.MARKED);
for (LogicalChannel channel : composite.getChannels()) { if (LogicalState.NEW == channel.getState()) { channel.setState(LogicalState.PROVISIONED);