Package org.mule.module.launcher.domain

Examples of org.mule.module.launcher.domain.Domain


    }

    @Override
    public Domain deployPackagedArtifact(String zip) throws DeploymentException
    {
        Domain domain = domainDeployer.deployPackagedArtifact(zip);
        deployBundledAppsIfDomainWasCreated(domain);
        return domain;
    }
View Full Code Here


    }

    @Override
    public Domain deployExplodedArtifact(String artifactDir) throws DeploymentException
    {
        Domain domain = domainDeployer.deployExplodedArtifact(artifactDir);
        deployBundledAppsIfDomainWasCreated(domain);
        return domain;
    }
View Full Code Here

    }

    @Override
    public Domain deployPackagedArtifact(URL artifactAchivedUrl)
    {
        Domain domain = domainDeployer.deployPackagedArtifact(artifactAchivedUrl);
        deployBundledAppsIfDomainWasCreated(domain);
        return domain;
    }
View Full Code Here

        domainDeployer.undeployArtifact(artifactId);
    }

    private Collection<Application> findApplicationsAssociated(String artifactId)
    {
        Domain domain = deploymentService.findDomain(artifactId);
        Preconditions.checkArgument(domain != null, String.format("Domain %s does not exists", artifactId));
        return findApplicationsAssociated(domain);
    }
View Full Code Here

        doDomainUndeployAndVerifyAppsAreUndeployed(new Action()
        {
            @Override
            public void perform()
            {
                Domain domain = findADomain(dummyDomainDescriptor.id, 1);
                deploymentService.undeploy(domain);
            }
        });
    }
View Full Code Here

    {
        // list all apps to validate total count
        final List<Domain> apps = deploymentService.getDomains();
        assertNotNull(apps);
        assertEquals(totalAppsExpected, apps.size());
        final Domain domain = deploymentService.findDomain(domainName);
        assertNotNull(domain);
        return domain;
    }
View Full Code Here

        assertDeploymentSuccess(domainDeploymentListener, dummyDomainDescriptor.id);

        assertDomainDir(NONE, new String[] {dummyDomainDescriptor.id}, true);

        final Domain domain = findADomain(dummyDomainDescriptor.id, 1);
        assertNotNull(domain);
        assertNotNull(domain.getMuleContext());
        assertDomainAnchorFileExists(dummyDomainDescriptor.id);
    }
View Full Code Here

    {
        assertDeploymentSuccess(domainDeploymentListener, dummyDomainBundleDescriptor.id);

        assertDomainDir(NONE, new String[] {dummyDomainBundleDescriptor.id}, true);

        final Domain domain = findADomain(dummyDomainBundleDescriptor.id, 1);
        assertNotNull(domain);
        assertNull(domain.getMuleContext());

        assertApplicationDeploymentSuccess(applicationDeploymentListener, dummyAppDescriptor.id);
        assertAppsDir(NONE, new String[] {dummyAppDescriptor.id}, true);

        final Application app = findApp(dummyAppDescriptor.id, 1);
View Full Code Here

        assertDeploymentSuccess(domainDeploymentListener, dummyDomainDescriptor.id);

        assertDomainDir(NONE, new String[] {dummyDomainDescriptor.id}, true);

        final Domain domain = findADomain(dummyDomainDescriptor.id, 1);
        assertNotNull(domain);
        assertNotNull(domain.getMuleContext());
        assertDomainAnchorFileExists(dummyDomainDescriptor.id);
    }
View Full Code Here

        addPackedDomainFromResource(DeploymentServiceTestCase.dummyDomainDescriptor.zipPath);

        deploymentService.start();

        assertDeploymentSuccess(domainDeploymentListener, dummyDomainDescriptor.id);
        final Domain domain = findADomain(dummyDomainDescriptor.id, 1);
        domain.stop();

        deploymentService.undeploy(domain);
    }
View Full Code Here

TOP

Related Classes of org.mule.module.launcher.domain.Domain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.