Examples of stop()


Examples of org.apache.tuscany.sca.core.factory.InstanceWrapper.stop()

                callbackConversations.remove(contextId);
            }

            // stop the component if this removes the last reference
            if (clientConversationId == null && callbackConversations.isEmpty()) {
                ctx.stop();
            }
        }

        private void createInstance(Object contextId) throws TargetResolutionException {
            InstanceWrapper instanceWrapper = createInstanceWrapper();
View Full Code Here

Examples of org.apache.tuscany.sca.core.runtime.CompositeActivator.stop()

         * @param composite
         * @throws ActivationException
         */
        public void stopComposite(Composite composite) throws ActivationException {
            CompositeActivator compositeActivator = runtime.getCompositeActivator();
            compositeActivator.stop(composite);
        }
    }

    /**
     * Constructs a new domain facade.
View Full Code Here

Examples of org.apache.tuscany.sca.domain.SCADomain.stop()

            domain.start();
       
            System.out.println("Domain started (press enter to shutdown)");
            System.in.read();
           
            domain.stop();
        } catch (Exception e) {
            e.printStackTrace();
        }

        System.out.println("Domain stopped");
View Full Code Here

Examples of org.apache.tuscany.sca.endpointresolver.EndpointResolver.stop()

                final EndpointResolver endpointResolver = runtimeRef.getEndpointResolver(endpoint);
                if (endpointResolver != null) {
                    // Allow endpoint resolvers to do any shutdown reference manipulation
                    AccessController.doPrivileged(new PrivilegedAction<Object>() {
                        public Object run() {
                            endpointResolver.stop();
                            return null;
                          }
                    });                      
                }
            }            
View Full Code Here

Examples of org.apache.tuscany.sca.host.corba.jee.JEECorbaHost.stop()

            JEECorbaHost innerHost = new JEECorbaHost();
            innerHost.start();
            TestInterfaceServant servant = new TestInterfaceServant();
            innerHost.registerServant(uri1, servant);
            innerHost.registerServant(uri2, servant);
            innerHost.stop();
            try {
                innerHost.lookup(uri1);
                fail();
            } catch (CorbaHostException e) {
                assertEquals(CorbaHostException.NO_SUCH_OBJECT, e.getMessage());
View Full Code Here

Examples of org.apache.tuscany.sca.host.corba.naming.TransientNameServer.stop()

        int useCount = clientsCount.containsKey(port) ? clientsCount.get(port) : 0;
        if (useCount == 1) {
            // last client executed stop, cleaning up
            TransientNameServer server = localServers.get(port);
            if (server != null) {
                server.stop();
                clientsCount.remove(port);
                localServers.remove(port);
            } else {
                logger.warning("Local name server on port " + port + " was null!");
            }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.stop()

        for (Composite deployable : bigbankContribution.getDeployables()) {
            domain.getCompositeActivator().stop(deployable);
            domain.getCompositeActivator().deactivate(deployable);
        }

        domain.stop();

        domain.close();
       
       
        /*SCADomain domain = SCADomain.newInstance("BigBank.composite");
View Full Code Here

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

        assertEquals(calculator.add(3, 2), 5.0, 0);
        assertEquals(calculator.subtract(3, 2), 1.0, 0);
        assertEquals(calculator.multiply(3, 2), 6.0, 0);
        assertEquals(calculator.divide(3, 2), 1.5, 0);
       
        node.stop();       
    }
}
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode.stop()

    public void addContribution(URL contributionURL) throws NodeException {
        SCANode scaNode = createNode(cp + "/" + contributionURL);

        if (started && domainName == null) {
            scaNode.stop();
        }
       
        scaNode.addContribution(contributionURL.toString(), contributionURL);
        logger.info("added contribution: " + contributionURL);
       
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2.stop()

                    System.out.println("3 * 2=" + calculatorService.multiply(3, 2));
                    System.out.println("3 / 2=" + calculatorService.divide(3, 2));
                }
            }
           
            node.stop();
           
        } catch (Exception e) {
            throw new ServiceRuntimeException(e);
        }       
    }
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.