public synchronized void include(Composite composite) throws Fabric3Exception { instantiateAndDeploy(composite); }
public synchronized void include(Composite composite) throws Fabric3Exception { instantiateAndDeploy(composite); }
/** * Include all deployables contained in the list of contributions in the domain. * * @param uris the contributions to deploy * @param recover true if this is a recovery operation * @throws Fabric3Exception if an error is encountered during inclusion */ private synchronized void include(List<URI> uris, boolean recover) throws Fabric3Exception { Set<Contribution> contributions = contributionHelper.findContributions(uris); List<Composite> deployables = contributionHelper.getDeployables(contributions); instantiateAndDeploy(deployables, contributions, recover); }
/** * Include all deployables contained in the list of contributions in the domain. * * @param uris the contributions to deploy * @param recover true if this is a recovery operation * @throws Fabric3Exception if an error is encountered during inclusion */ private synchronized void include(List<URI> uris, boolean recover) throws Fabric3Exception { Set<Contribution> contributions = contributionHelper.findContributions(uris); List<Composite> deployables = contributionHelper.getDeployables(contributions); instantiateAndDeploy(deployables, contributions, recover); }
public synchronized void include(Composite composite, boolean simulated) throws DeploymentException { QName name = composite.getName(); for (DeployListener listener : listeners) { listener.onDeploy(name, SYNTHETIC_PLAN_NAME); } instantiateAndDeploy(composite, SYNTHETIC_PLAN, simulated); }
instantiateAndDeploy(deployableComposites, contributions, merged, true);
instantiateAndDeploy(deployables, contributions, merged, false); for (Composite deployable : deployables) { QName name = deployable.getName(); instantiateAndDeploy(deployables, contributions, SYNTHETIC_PLAN, false); for (Composite deployable : deployables) { for (DeployListener listener : listeners) {
public synchronized void include(QName deployable, String planName) throws DeploymentException { Composite wrapper = createWrapper(deployable); DeploymentPlan plan; if (planName == null) { if (RuntimeMode.CONTROLLER == info.getRuntimeMode() && !isLocal()) { plan = contributionHelper.findDefaultPlan(deployable); if (plan == null) { plan = SYNTHETIC_PLAN; } } else { plan = SYNTHETIC_PLAN; } } else { // plan specified plan = contributionHelper.findPlan(planName); if (plan == null) { throw new DeploymentPlanNotFoundException("Deployment plan not found: " + planName); } } for (DeployListener listener : listeners) { listener.onDeploy(deployable, plan.getName()); } instantiateAndDeploy(wrapper, plan, false); for (DeployListener listener : listeners) { listener.onDeployCompleted(deployable, plan.getName()); } }