/** * 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 void onDeployCompleted(QName deployable, String plan) { if (enabled) { monitor.deploymentCompleted(deployable); } }
/** * Bootstrap constructor. */ public LogicalComponentManagerImpl() { this.domainUri = Names.RUNTIME_URI; initializeDomainComposite(); }
/** * Allocates and deploys new components in the domain. * * @param domain the domain component * @throws Fabric3Exception if an error is encountered during deployment */ private void deploy(LogicalCompositeComponent domain) throws Fabric3Exception { // generate and provision any new components and new wires Deployment deployment = generator.generate(domain); collector.markAsProvisioned(domain); deployer.deploy(deployment); }
@Init public void init() { if (autowireValue != null) { boolean autowire; // can't use Enum.valueOf(..) as INHERITED is not a valid value for the domain composite if ("ON".equalsIgnoreCase(autowireValue.trim())) { autowire = true; } else if ("OFF".equalsIgnoreCase(autowireValue.trim())) { autowire = false; } else { monitor.invalidAutowireValue(autowireValue); return; } this.autowire = autowire; } initializeDomainComposite(); }
public synchronized void include(List<URI> uris) throws Fabric3Exception { include(uris, false); }
public synchronized void include(Composite composite) throws Fabric3Exception { instantiateAndDeploy(composite); }
public void onDeploy(QName deployable, String plan) { if (enabled) { monitor.deploy(deployable); } }
public void onUndeploy(QName undeployed) { if (enabled) { monitor.undeploy(undeployed); } }
public void onUndeployCompleted(QName undeployed) { if (enabled) { monitor.undeployCompleted(undeployed); } }
public synchronized void activateDefinitions(URI uri) throws DeploymentException { activateAndDeployDefinitions(uri, false); }
public DeploymentPlan findDefaultPlan(Contribution contribution) { DeploymentPlan plan; List<DeploymentPlan> plans = new ArrayList<DeploymentPlan>(); getDeploymentPlans(contribution, plans); if (!plans.isEmpty()) { plan = plans.get(0); } else { return null; } return plan; }
/** * 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); }
/** * Allocates and deploys new components in the domain. * * @param domain the domain component * @throws Fabric3Exception if an error is encountered during deployment */ private void deploy(LogicalCompositeComponent domain) throws Fabric3Exception { // generate and provision any new components and new wires Deployment deployment = generator.generate(domain); collector.markAsProvisioned(domain); deployer.deploy(deployment); }
@Init public void init() { if (autowireValue != null) { boolean autowire; // can't use Enum.valueOf(..) as INHERITED is not a valid value for the domain composite if ("ON".equalsIgnoreCase(autowireValue.trim())) { autowire = true; } else if ("OFF".equalsIgnoreCase(autowireValue.trim())) { autowire = false; } else { monitor.invalidAutowireValue(autowireValue); return; } this.autowire = autowire; } initializeDomainComposite(); }
public synchronized void include(QName deployable) throws DeploymentException { include(deployable, null); }
public synchronized void include(Composite composite) throws Fabric3Exception { instantiateAndDeploy(composite); }
/** * Bootstrap constructor. */ public LogicalComponentManagerImpl() { this.domainUri = Names.RUNTIME_URI; initializeDomainComposite(); }
public synchronized void include(List<URI> uris) throws Fabric3Exception { include(uris, false); }
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); }