Examples of stop()


Examples of org.apache.tuscany.sca.node.impl.NodeImpl.stop()

            System.out.println(matchAudit.toString());
        }
       
        Assert.assertTrue(match);
      
        node1.stop();
   
   
}
View Full Code Here

Examples of org.apache.tuscany.sca.node.osgi.launcher.FelixOSGiHost.stop()

            try {
                runAllTestsFromDirs(cl, project.getBuild().getTestOutputDirectory());
            } finally {
                Thread.currentThread().setContextClassLoader(tccl);
            }
            host.stop();
        } catch (Throwable e) {
            throw new MojoExecutionException(e.getMessage(), e);
        }
        //        finally {
        //            System.clearProperty("TUSCANY_HOME");
View Full Code Here

Examples of org.apache.tuscany.sca.node2.Node.stop()

        } else {
            if (standaloneNodes.containsKey(curi)) {
                standaloneNodes.remove(curi).stop();
            } else if (nodes.containsKey(curi)) {
                Node n = nodes.remove(curi);
                n.stop();
                if (n.getDomainName().equals(currentDomain)) {
                    currentDomain = "";
                }
            } else {
                for (String compositeURI : getNode().getDeployedComposites(curi)) {
View Full Code Here

Examples of org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionManagerWrapper.stop()

        helper.managedGlobalTransactionPostInvoke(t1, false);
        assertNotNull(tm.getTransaction());
        assertEquals(6, t1.getStatus());

        activator.stop();
    }
}
View Full Code Here

Examples of org.apache.tuscany.sca.provider.ImplementationProvider.stop()

        if (implementation instanceof Composite) {
            stop((Composite)implementation);
        } else {
            ImplementationProvider implementationProvider = ((RuntimeComponent)component).getImplementationProvider();
            if (implementationProvider != null) {
                implementationProvider.stop();
            }
        }

        if (component instanceof ScopedRuntimeComponent) {
            ScopedRuntimeComponent runtimeComponent = (ScopedRuntimeComponent)component;
View Full Code Here

Examples of org.apache.tuscany.sca.provider.ReferenceBindingProvider.stop()

            }
            RuntimeComponentReference runtimeRef = ((RuntimeComponentReference)reference);
            for (Binding binding : reference.getBindings()) {
                ReferenceBindingProvider bindingProvider = runtimeRef.getBindingProvider(binding);
                if (bindingProvider != null) {
                    bindingProvider.stop();
                }
            }
        }
        Implementation implementation = component.getImplementation();
        if (implementation instanceof Composite) {
View Full Code Here

Examples of org.apache.tuscany.sca.provider.ServiceBindingProvider.stop()

                logger.fine("Stopping component service: " + component.getURI() + "#" + service.getName());
            }
            for (Binding binding : service.getBindings()) {
                ServiceBindingProvider bindingProvider = ((RuntimeComponentService)service).getBindingProvider(binding);
                if (bindingProvider != null) {
                    bindingProvider.stop();
                }
            }
        }
        for (ComponentReference reference : component.getReferences()) {
            if (logger.isLoggable(Level.FINE)) {
View Full Code Here

Examples of org.apache.tuscany.sca.registry.hazelcast.HazelcastDomainRegistry.stop()

        System.out.println("Stopping reg1");
        reg1.stop();
        System.out.println("Stopping reg2");
        reg2.stop();
        System.out.println("Stopping reg3");
        reg3.stop();
        System.out.println("done");
    }

    @Test
    public void testDuplicates() throws Exception {
View Full Code Here

Examples of org.apache.tuscany.sca.scope.InstanceWrapper.stop()

        public void onEvent(Event event) {
            if (event instanceof StoreExpirationEvent) {
                StoreExpirationEvent expiration = (StoreExpirationEvent)event;
                InstanceWrapper wrapper = (InstanceWrapper)expiration.getInstance();
                try {
                    wrapper.stop();
                } catch (TargetDestructionException e) {
                    // monitor.destructionError(e);
                }
            }
        }
View Full Code Here

Examples of org.apache.tuscany.spi.component.AtomicComponent.stop()

        List<Class<?>> interfaces = new ArrayList<Class<?>>();
        interfaces.add(Source.class);
        Source originalSource = new SourceImpl();
        AtomicComponent component = EasyMock.createMock(AtomicComponent.class);
        component.start();
        component.stop();
        EasyMock.expectLastCall().times(2);
        EasyMock.expect(component.getName()).andReturn("source").atLeastOnce();
        EasyMock.expect(component.isSystem()).andReturn(false).atLeastOnce();
        EasyMock.expect(component.getServiceInstance()).andReturn(originalSource).atLeastOnce();
        EasyMock.expect(component.getServiceInterfaces()).andReturn(interfaces);
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.