Package org.apache.tuscany.sca.work

Examples of org.apache.tuscany.sca.work.WorkScheduler


        throw new JMSBindingException("Unable to create JMSResponseInvoker", e);
      } // end try
       
        // Create the response queue handler
            UtilityExtensionPoint utilities = extensions.getExtensionPoint(UtilityExtensionPoint.class);
            WorkScheduler workScheduler = utilities.getUtility(WorkScheduler.class);
       
      responseQueue = new AsyncResponseJMSServiceListener(listener,
                    jmsBinding.getResponseDestinationName(),
                    jmsBinding, workScheduler, jmsResourceFactory);
      responseQueue.start();
View Full Code Here


        initExecutorService(registry);
    }

    private final void initExecutorService(ExtensionPointRegistry registry) {
        UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class);
        WorkScheduler scheduler = utilities.getUtility(WorkScheduler.class);
        theExecutor = scheduler.getExecutorService();

    } // end method initExecutorService
View Full Code Here

    public void start(ExtensionPointRegistry extensionPointRegistry) {

        // Register a Tomcat servlet host
        ServletHostExtensionPoint servletHosts =
            extensionPointRegistry.getExtensionPoint(ServletHostExtensionPoint.class);
        WorkScheduler workScheduler = extensionPointRegistry.getExtensionPoint(WorkScheduler.class);
        server = new TomcatServer(workScheduler);
        server.init();
        servletHosts.addServletHost(server);
    }
View Full Code Here

    public void start(ExtensionPointRegistry extensionPointRegistry) {

        // Register a Jetty servlet host
        ServletHostExtensionPoint servletHosts =
            extensionPointRegistry.getExtensionPoint(ServletHostExtensionPoint.class);
        WorkScheduler workScheduler = extensionPointRegistry.getExtensionPoint(WorkScheduler.class);
        server = new JettyServer(workScheduler);
        servletHosts.addServletHost(server);
    }
View Full Code Here

* @version $Rev: 576234 $ $Date: 2007-09-16 19:05:03 -0700 (Sun, 16 Sep 2007) $
*/
public class NonBlockingInterceptorTestCase extends TestCase {

    public void testInvoke() throws Exception {
        WorkScheduler scheduler = createMock(WorkScheduler.class);
        scheduler.scheduleWork(isA(Runnable.class));
        expectLastCall().andStubAnswer(new IAnswer<Object>() {
            public Object answer() throws Throwable {
                Runnable runnable = (Runnable) getCurrentArguments()[0];
                runnable.run();
                return null;
View Full Code Here

    public void start(ExtensionPointRegistry extensionPointRegistry) {

        // Register a Tomcat servlet host
        ServletHostExtensionPoint servletHosts =
            extensionPointRegistry.getExtensionPoint(ServletHostExtensionPoint.class);
        WorkScheduler workScheduler = extensionPointRegistry.getExtensionPoint(WorkScheduler.class);
        server = new TomcatServer(workScheduler);
        servletHosts.addServletHost(server);
    }
View Full Code Here

* @version $Rev: 576234 $ $Date: 2007-09-17 03:05:03 +0100 (Mon, 17 Sep 2007) $
*/
public class NonBlockingInterceptorTestCase extends TestCase {

    public void testInvoke() throws Exception {
        WorkScheduler scheduler = createMock(WorkScheduler.class);
        scheduler.scheduleWork(isA(Runnable.class));
        expectLastCall().andStubAnswer(new IAnswer<Object>() {
            public Object answer() throws Throwable {
                Runnable runnable = (Runnable) getCurrentArguments()[0];
                runnable.run();
                return null;
View Full Code Here

        throw new JMSBindingException("Unable to create JMSResponseInvoker", e);
      } // end try
       
        // Create the response queue handler
            UtilityExtensionPoint utilities = extensions.getExtensionPoint(UtilityExtensionPoint.class);
            WorkScheduler workScheduler = utilities.getUtility(WorkScheduler.class);
       
      responseQueue = new AsyncResponseJMSServiceListener(listener,
                    jmsBinding.getResponseDestinationName(),
                    jmsBinding, workScheduler, jmsResourceFactory);
      responseQueue.start();
View Full Code Here

        this.registry = registry;
        this.messageFactory = registry.getExtensionPoint(FactoryExtensionPoint.class).getFactory(MessageFactory.class);
        this.invocable = invocable;
       
        UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class);
        WorkScheduler scheduler = utilities.getUtility(WorkScheduler.class);
        theExecutor = scheduler.getExecutorService();
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.work.WorkScheduler

Copyright © 2018 www.massapicom. 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.