Examples of stop()


Examples of org.switchyard.component.bpm.exchange.BPMExchangeHandler.stop()

        Service service = serviceDomain.registerService(serviceName, JavaService.fromClass(AccessAttachment.class), handler);
        serviceDomain.registerServiceReference(service.getName(), service.getInterface(), service.getProviderHandler());
        handler.start();
        DataSource attachment = new TestDataSource("someAttach", "text/plain", "someAttachData");
        new Invoker(serviceDomain, serviceName).operation("process").attachment(attachment.getName(), attachment).sendInOnly(holder);
        handler.stop();
        Assert.assertEquals("someAttachData", holder.getValue());
    }

    @BPM(processId="ControlProcess", manifest=@Manifest(resources=@Resource(location=CONTROL_PROCESS_BPMN, type="BPMN2")))
    public interface ControlProcess {
View Full Code Here

Examples of org.switchyard.component.rules.exchange.RulesExchangeHandler.stop()

        Service service = serviceDomain.registerService(serviceName, JavaService.fromClass(AccessAttachment.class), handler);
        serviceDomain.registerServiceReference(service.getName(), service.getInterface(), service.getProviderHandler());
        handler.start();
        DataSource attachment = new TestDataSource("someAttach", "text/plain", "someAttachData");
        new Invoker(serviceDomain, serviceName).operation("process").attachment(attachment.getName(), attachment).sendInOnly(holder);
        handler.stop();
        Assert.assertEquals("someAttachData", holder.getValue());
    }

    @Rules(manifest=@Manifest(resources=@Resource(location=DECISION_TABLE_XLS, type="DTABLE")))
    public interface DecisionTable {
View Full Code Here

Examples of org.switchyard.deploy.ServiceHandler.stop()

            for (Activation activation : _components) {
                _log.debug("Deactivating " + activation.getName());
                final ServiceHandler handler = activation.getHandler();
                if (handler != null) {
                    try {
                        handler.stop();
                    } catch (Throwable e) {
                        BaseDeployLogger.ROOT_LOGGER.errorStoppingService(e);
                    }
                }
View Full Code Here

Examples of org.syncany.operations.daemon.WatchServer.stop()

    assertTrue(response instanceof StatusFolderResponse);
    StatusFolderResponse cliResponse = (StatusFolderResponse) response;
   
    //assertEquals("Cannot run CLI commands while sync is running or requested.\n", cliResponse.getOutput());
   
    watchServer.stop();
    clientA.deleteTestData();
  }
   
  @Subscribe
  public void onResponseReceived(Response response) { 
View Full Code Here

Examples of org.syncany.operations.watch.DefaultRecursiveWatcher.stop()

    Thread.sleep(550);
    assertTrue(eventOccurred.get());

    // Stop watcher (close watches)
    watcher.stop();
   
    // Tear down
    TestFileUtil.deleteDirectory(tempDir);
  }
 
View Full Code Here

Examples of org.syncany.operations.watch.NotificationListener.stop()

    }
    assertEquals("Different amount of messages received by 1", 2, messagesReceivedBy1.get());
    assertEquals("Different amount of messages received by 2", 2, messagesReceivedBy2.get());

    notificationListener1.stop();
    notificationListener2.stop();
  }
}
View Full Code Here

Examples of org.talend.esb.job.controller.GenericOperation.stop()

        if (isConsumerOnly(esbJob)) {
            stopJob(esbJob, name);
        } else {
            GenericOperation task = operations.remove(name);
            if (task != null) {
                task.stop();
            }
        }
    }

    @Override
View Full Code Here

Examples of org.teavm.common.ThreadPoolFiniteExecutor.stop()

            if (numThreads != 1) {
                int threads = numThreads != 0 ? numThreads : Runtime.getRuntime().availableProcessors();
                final ThreadPoolFiniteExecutor threadedExecutor = new ThreadPoolFiniteExecutor(threads);
                finalizer = new Runnable() {
                    @Override public void run() {
                        threadedExecutor.stop();
                    }
                };
                executor = threadedExecutor;
            }
            for (final MethodReference method : testMethods) {
View Full Code Here

Examples of org.tinyradius.util.RadiusServer.stop()

   
    System.out.println("Server started.");
   
    Thread.sleep(1000*60*30);
    System.out.println("Stop server");
    server.stop();
  }
 
}
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.stop()

    }

    Stopwatch watch = new Stopwatch();
    watch.start();
    app.multMatrices(a, b, c_gpu, size);
    watch.stop();
    System.out.println("gpu time: "+watch.elapsedTimeMillis());

    watch = new Stopwatch();
    watch.start();
    app.cpuMultMatrices(a, b, c_cpu, size);
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.