while (channelIter.hasNext()) { LogicalChannel channel = channelIter.next(); if (MARKED == channel.getState()) { channelIter.remove();
while (channelIter.hasNext()) { LogicalChannel channel = channelIter.next(); if (MARKED == channel.getState()) { channelIter.remove();
while (channelIter.hasNext()) { LogicalChannel channel = channelIter.next(); if (LogicalState.MARKED == channel.getState()) { channelIter.remove();
if (NEW == channel.getState()) { channel.setState(PROVISIONED);
if (NEW == channel.getState()) { channel.setState(PROVISIONED);
/** * 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); } } }
if (LogicalState.NEW == channel.getState()) { channel.setState(LogicalState.PROVISIONED);