Package org.apache.tuscany.sca.node

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


       
        System.out.println("Nodes are running, press enter to stop...");
        System.in.read();
       
        for (SCANode runtimeNode: runtimeNodes) {
            runtimeNode.stop();
        }
    }

    private static String print(Composite composite) throws XMLStreamException, ContributionWriteException, ParserConfigurationException, SAXException, IOException {
View Full Code Here

            System.in.read();
        } else {
            Thread.sleep(timeout);
        }

        node.stop();
        System.out.println("Bye");

        // The following line is a workaround for TUSCANY-3277 (the JVM hangs when exiting).
        System.exit(0);
    }
View Full Code Here

        System.out.println("Press a key to stop");
        try {
            System.in.read();
        } catch (IOException e) {}
       
        node.stop();
       
        jmsBroker.stop();

    }
}
View Full Code Here

            System.in.read();
        } else {
            Thread.sleep(timeout);
        }

        node.stop();
        System.out.println("Bye");
    }
}
View Full Code Here

                    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

            System.in.read();
        } else {
            Thread.sleep(timeout);
        }

        node.stop();
        System.out.println("Bye");
    }

}
View Full Code Here

        orderServiceClient.doSomeOrdering();
       
        // wait to give the service time to respond
        Thread.sleep(500);
       
        node.stop();
    }

}
View Full Code Here

        Shopper shopper = client.getService(Shopper.class, "StoreClient");
       
        String total = shopper.shop("Orange", 5);
        System.out.println("Total: " + total);
       
        storeClientNode.stop();
    }
}
View Full Code Here

            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }

        node.stop();
        System.out.println("Callback server stopped");
    }

}
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.