Package org.rioproject.opstring

Examples of org.rioproject.opstring.OperationalStringManager.increment()


            Assert.assertEquals(1, opstring.getServices().length);
            testManager.waitForDeployment(mgr);
            ServiceBeanInstance[] instances =
                cybernode.getServiceBeanInstances(opstring.getServices()[0]);
            Assert.assertEquals(1, instances.length);           
            mgr.increment(opstring.getServices()[0], true, null);
            ServiceMonitor<Simple> sMon =
                new ServiceMonitor<Simple>(testManager.getServiceDiscoveryManager(), Simple.class);
            sMon.waitFor(2);
            instances =
                cybernode.getServiceBeanInstances(opstring.getServices()[0]);
View Full Code Here


        ServiceElement serviceElement = entry.getKey();
        OperationalStringManager opMgr = entry.getValue();
        if(logger.isDebugEnabled())
            logger.debug("Increment service {}", getNameForLogging(serviceElement));
        try {
            opMgr.increment(serviceElement, true, null);
        } catch(RemoteException e) {
            if(!ThrowableUtil.isRetryable(e)) {
                logger.warn("Unable to connect to OperationalStringManager to increment service {}/{}",
                               serviceElement.getOperationalStringName(), serviceElement.getName());
            } else {
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.