Package org.rioproject.impl.opstring

Examples of org.rioproject.impl.opstring.OpString.addService()


        PFEListener listener = new PFEListener();
        BasicEventConsumer eventConsumer = new BasicEventConsumer(ProvisionFailureEvent.getEventDescriptor(), listener);
        eventConsumer.register(monitorItems[0]);

        OpString opString = new OpString(opStringName, null);
        opString.addService(element);
        Assert.assertNotNull(monitor);
        testManager.deploy(opString, monitor);
        for(int i=0; i<10; i++) {
            if(listener.failed!=null) {
                break;
View Full Code Here


        descriptor.setMatchOnName(true);
        descriptor.setOperationalStringName(element2.getOperationalStringName());
        descriptor.setGroups(testManager.getGroups());
        element1.addAssociationDescriptors(descriptor);
        OpString opString = new OpString(opStringName, null);
        opString.addService(element1);
        opString.addService(element2);
        OperationalStringManager manager = testManager.deploy(opString, monitor);
        Assert.assertNotNull(manager);
        testManager.waitForDeployment(manager);
View Full Code Here

        descriptor.setOperationalStringName(element2.getOperationalStringName());
        descriptor.setGroups(testManager.getGroups());
        element1.addAssociationDescriptors(descriptor);
        OpString opString = new OpString(opStringName, null);
        opString.addService(element1);
        opString.addService(element2);
        OperationalStringManager manager = testManager.deploy(opString, monitor);
        Assert.assertNotNull(manager);
        testManager.waitForDeployment(manager);

        PMEListener listener = new PMEListener(ProvisionMonitorEvent.Action.SERVICE_BEAN_DECREMENTED);
View Full Code Here

        descriptor.setMatchOnName(true);
        descriptor.setOperationalStringName(element2.getOperationalStringName());
        descriptor.setGroups(testManager.getGroups());
        element1.addAssociationDescriptors(descriptor);
        OpString opString = new OpString("FooBar", null);
        opString.addService(element1);
        opString.addService(element2);
        OperationalStringManager manager = testManager.deploy(opString, monitor);
        Assert.assertNotNull(manager);
        ServiceBeanInstance[] instances = new ServiceBeanInstance[0];
        for(int i=0; i<10; i++) {
View Full Code Here

        descriptor.setOperationalStringName(element2.getOperationalStringName());
        descriptor.setGroups(testManager.getGroups());
        element1.addAssociationDescriptors(descriptor);
        OpString opString = new OpString("FooBar", null);
        opString.addService(element1);
        opString.addService(element2);
        OperationalStringManager manager = testManager.deploy(opString, monitor);
        Assert.assertNotNull(manager);
        ServiceBeanInstance[] instances = new ServiceBeanInstance[0];
        for(int i=0; i<10; i++) {
            instances = cybernode.getServiceBeanInstances(element1);
View Full Code Here

*/
public class OpStringManagerControllerTest {
    @Test
    public void testAddRemove() throws Exception {
        OperationalString opString = new OpString("test", null);
        opString.addService(TestUtil.makeServiceElement("foo", "test"));
        Configuration config = new DynamicConfiguration();
        OpStringManagerController opStringManagerController = new OpStringManagerController();
        opStringManagerController.setServiceProxy(TestUtil.createProvisionMonitor());
        opStringManagerController.setEventProcessor(new ProvisionMonitorEventProcessor(config));
        opStringManagerController.setConfig(config);
View Full Code Here

                                                        resourceCapability,
                                                        50);
        service = createServiceElement();
        OperationalString opString = new OpString("test", null);

        opString.addService(service);
        OpStringManager parent = null;
        boolean active = true;
        Configuration config = new DynamicConfiguration();
        OpStringManagerController opStringManagerController = new OpStringManagerController();
        manager = new DefaultOpStringManager(opString,
View Full Code Here

     */
    public OperationalString doGetOperationalString() {
        OpString opstr = new OpString(opString.getName(), opString.loadedFrom());
        opstr.setDeployed(deployStatus);
        for (ServiceElementManager mgr : svcElemMgrs) {
            opstr.addService(mgr.getServiceElement());
        }
        for (OpStringManager nestedMgr : nestedManagers) {
            opstr.addOperationalString(nestedMgr.doGetOperationalString());
        }
        opString = opstr;
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.