Package javax.enterprise.deploy.spi

Examples of javax.enterprise.deploy.spi.TargetModuleID


        log.debug("Checking if module is started: " + moduleId);
       
        DeploymentManager manager = getDeploymentManager();

        Target[] targets = manager.getTargets();
        TargetModuleID targetIds[] = manager.getRunningModules(null, targets);

        for (int i = 0; i < targetIds.length; i++) {
            if (moduleId.equals(targetIds[i].getModuleID())) {
                return true;
            }
View Full Code Here


                command, clownfishHelper, progressListenerFactory,
                maven2WrapperLog))
                .andReturn(clownfish);
       
        Target target = EasyMock.createMock(Target.class);
        TargetModuleID targetModuleId = EasyMock.createMock(
                TargetModuleID.class);
       
        EasyMock.expect(targetModuleId.getTarget()).andReturn(target);
        EasyMock.expect(target.getName()).andReturn("mock target name");
        EasyMock.expect(targetModuleId.getModuleID()).andReturn(
                "mock target module id name");
        EasyMock.expect(targetModuleId.getWebURL())
                .andReturn("mock target module id url");
       
        List<TargetModuleID> targetModuleIdList =
                new ArrayList<TargetModuleID>();
        targetModuleIdList.add(targetModuleId);
View Full Code Here

                command, clownfishHelper, progressListenerFactory,
                maven2WrapperLog))
                .andReturn(clownfish);
       
        Target target = EasyMock.createMock(Target.class);
        TargetModuleID targetModuleId = EasyMock.createMock(
                TargetModuleID.class);
       
        EasyMock.expect(targetModuleId.getTarget()).andReturn(target);
        EasyMock.expect(target.getName()).andReturn("mock target name");
        EasyMock.expect(targetModuleId.getModuleID()).andReturn(
                "mock target module id name");
        EasyMock.expect(targetModuleId.getWebURL())
                .andReturn("mock target module id url");
       
        List<TargetModuleID> targetModuleIdList =
                new ArrayList<TargetModuleID>();
        targetModuleIdList.add(targetModuleId);
View Full Code Here

        properties.put("clownfish.artifactTypes", artifactTypes);
        EasyMock.expect(commandFactory.getConfigurationProperties(listMojo,
                maven2WrapperLog)).andReturn(properties);
       
        Target target = EasyMock.createMock(Target.class);
        TargetModuleID targetModuleId = EasyMock.createMock(
                TargetModuleID.class);
       
        EasyMock.expect(targetModuleId.getTarget()).andReturn(target);
        EasyMock.expect(target.getName()).andReturn("mock target name");
        EasyMock.expect(targetModuleId.getModuleID()).andReturn(
                "mock target module id name");
        EasyMock.expect(targetModuleId.getWebURL())
                .andReturn("mock target module id url");
       
        List<TargetModuleID> targetModuleIdList =
                new ArrayList<TargetModuleID>();
        targetModuleIdList.add(targetModuleId);
View Full Code Here

    }

    private static Set<TargetModuleID> toTargetModuleIds(Collection<AppInfo> deployedApps, ModuleType allowedModuleType) {
        Set<TargetModuleID> targetModuleIds = new HashSet<TargetModuleID>(deployedApps.size());
        for (AppInfo deployedApp : deployedApps) {
            TargetModuleID moduleId = toTargetModuleId(deployedApp, allowedModuleType);
            // moduleID will be null if the module was filtered
            if (moduleId != null) {
                targetModuleIds.add(moduleId);
            }
        }
View Full Code Here

            return new ProgressObjectImpl(CommandType.DISTRIBUTE, Collections.<TargetModuleID>emptySet());
        }

        try {
            AppInfo appInfo = getDeployer().deploy(properties);
            TargetModuleID targetModuleId = toTargetModuleId(appInfo, null);

            return new ProgressObjectImpl(CommandType.DISTRIBUTE, Collections.singleton(targetModuleId));
        } catch (ValidationFailedException e) {
            String s = System.getProperty(ReportValidationResults.VALIDATION_LEVEL, "3");
            int level = Integer.parseInt(s);
View Full Code Here

                    command, clownfishHelper, progressListenerFactory,
                    maven2WrapperLog))
                    .andReturn(clownfish);
           
            Target target = EasyMock.createMock(Target.class);
            TargetModuleID targetModuleId = EasyMock.createMock(
                    TargetModuleID.class);
           
            EasyMock.expect(targetModuleId.getTarget()).andReturn(target);
            EasyMock.expect(target.getName()).andReturn("mock target name");
            EasyMock.expect(targetModuleId.getModuleID()).andReturn(
                    "mock target module id name");
            EasyMock.expect(targetModuleId.getWebURL())
                    .andReturn("mock target module id url");
           
            List<TargetModuleID> targetModuleIdList =
                    new ArrayList<TargetModuleID>();
            targetModuleIdList.add(targetModuleId);
View Full Code Here

                    command, clownfishHelper, progressListenerFactory,
                    maven2WrapperLog))
                    .andReturn(clownfish);
           
            Target target = EasyMock.createMock(Target.class);
            TargetModuleID targetModuleId = EasyMock.createMock(
                    TargetModuleID.class);
           
            EasyMock.expect(targetModuleId.getTarget()).andReturn(target);
            EasyMock.expect(target.getName()).andReturn("mock target name");
            EasyMock.expect(targetModuleId.getModuleID()).andReturn(
                    "mock target module id name");
            EasyMock.expect(targetModuleId.getWebURL())
                    .andReturn("mock target module id url");
           
            List<TargetModuleID> targetModuleIdList =
                    new ArrayList<TargetModuleID>();
            targetModuleIdList.add(targetModuleId);
View Full Code Here

            properties.put("clownfish.artifactTypes", artifactTypes);
            EasyMock.expect(commandFactory.getConfigurationProperties(listMojo,
                    maven2WrapperLog)).andReturn(properties);
           
            Target target = EasyMock.createMock(Target.class);
            TargetModuleID targetModuleId = EasyMock.createMock(
                    TargetModuleID.class);
           
            EasyMock.expect(targetModuleId.getTarget()).andReturn(target);
            EasyMock.expect(target.getName()).andReturn("mock target name");
            EasyMock.expect(targetModuleId.getModuleID()).andReturn(
                    "mock target module id name");
            EasyMock.expect(targetModuleId.getWebURL())
                    .andReturn("mock target module id url");
           
            List<TargetModuleID> targetModuleIdList =
                    new ArrayList<TargetModuleID>();
            targetModuleIdList.add(targetModuleId);
View Full Code Here

        boolean multiple = isMultipleTargets(ids);
        ProgressObject po = mgr.redeploy(ids, module, plan);
        waitForProgress(out, po);
        TargetModuleID[] done = po.getResultTargetModuleIDs();
        for(int i = 0; i < done.length; i++) {
            TargetModuleID id = done[i];
            emit("Redeployed "+id.getModuleID()+(multiple ? " on "+id.getTarget().getName() : "")+(id.getWebURL() == null ? "" : " @ "+id.getWebURL()));
            if(id.getChildTargetModuleID() != null) {
                for (int j = 0; j < id.getChildTargetModuleID().length; j++) {
                    TargetModuleID child = id.getChildTargetModuleID()[j];
                    emit("  `-> "+child.getModuleID()+(child.getWebURL() == null ? "" : " @ "+child.getWebURL()));
                }
            }
        }
        if(po.getDeploymentStatus().isFailed()) {
            throw new DeploymentException("Operation failed: "+po.getDeploymentStatus().getMessage());
View Full Code Here

TOP

Related Classes of javax.enterprise.deploy.spi.TargetModuleID

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.