public void allocate(LogicalChannel channel, DeploymentPlan plan) throws AllocationException { channel.setZone(zoneName); }
public void allocate(LogicalChannel channel, DeploymentPlan plan) throws AllocationException { QName deployable = channel.getDeployable(); if (deployable == null) { // programming error throw new AssertionError("Deployable not found for " + channel.getUri()); } String zoneName = plan.getDeployableMappings().get(deployable); if (zoneName == null) { throw new DeployableMappingNotFoundException("Zone mapping not found for deployable: " + deployable); } channel.setZone(zoneName); }