Examples of DeploymentMap


Examples of org.rioproject.deploy.DeploymentMap

        Cybernode cybernode = (Cybernode)testManager.waitForService(Cybernode.class);
        Assert.assertNotNull(cybernode);
        OperationalStringManager mgr = testManager.getOperationalStringManager();
        testManager.waitForDeployment(mgr);

        DeploymentMap dMap = mgr.getDeploymentMap();
        Assert.assertEquals(1, dMap.getServiceElements().length);
        ServiceElement elem = dMap.getServiceElements()[0];
        List<DeployedService> list = dMap.getDeployedServices(elem);
        Assert.assertEquals(1, list.size());
        DeployedService deployed =  list.get(0);
        Assert.assertNotNull(deployed);

        testManager.undeploy(mgr.getOperationalString().getName());
View Full Code Here

Examples of org.rioproject.deploy.DeploymentMap

        public void run() {
            list.clear();
            try {
                logger.trace("ComputeResourceUtilizationFetcher, obtaining DeploymentMap for [{}]", opStringName);
                DeploymentMap dMap = opMgr.getDeploymentMap();
                if(serviceElements.isEmpty()) {
                    serviceElements.addAll(getMatchingServiceElements(dMap));
                    if(serviceElements.isEmpty())
                        logger.warn("Unable to obtain matching ServiceElement(s) for associated service [{}]",
                                    association.getName());
                }
                if(dMap!=null) {
                    for(ServiceElement elem : serviceElements)
                        list.addAll(dMap.getDeployedServices(elem));
                }
            } catch (RemoteException e) {
                logger.warn("Getting utilization for service [{}], terminating", association.getAssociationDescriptor(), e);
                terminate();
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.