Examples of submit()


Examples of org.geotools.process.ProcessExecutor.submit()

       
        ProcessExecutor engine = Processors.newProcessExecutor(2);
       
        // quick map of inputs
        Map<String,Object> input = new KVP("geom", geom);
        Progress working = engine.submit(process, input );
       
        // you could do other stuff whle working is doing its thing
        if( working.isCancelled() ){
            return;
        }
View Full Code Here

Examples of org.gridkit.coherence.util.classloader.Isolate.submit()

   
    Isolate node = new Isolate("Remote-2", "org.gridkit", "com.tangosol");
    node.start();
    node.submit(NodeActions.Start.class, "auto-pof-cache-config-server.xml");
    node.submit(GetAll.class);
    node.submit(NodeActions.Stop.class);
    node.stop();   
   
    Assert.assertEquals("ok", cache.get("ok"));
  }
 
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.Form.submit()

        Widget formPanel = renderer.render(form);
        formPanel.setWidth("300px");

        SimpleButton validateButton = new SimpleButton("Validate", new ClickHandler() {
            public void onClick(ClickEvent event) {
                form.submit(new SubmitHandler.Adapter() {
                    public void success(Record record) {
                        StringBuilder sb = new StringBuilder();
                        for (Map.Entry<String, Object> entry : record.getAllValues().entrySet()) {
                            sb.append(entry.getKey()).append(" = ").append(entry.getValue()).append("\n");
                        }
View Full Code Here

Examples of org.hive2hive.core.network.data.download.DownloadManager.submit()

          networkManager.getMessageManager(), keyManager, params.getFileConfig());

      // read the cached downloads and add them to the download manager
      for (BaseDownloadTask task : metaData.getDownloads()) {
        task.reinitializeAfterDeserialization();
        downloadManager.submit(task);
      }
      params.setDownloadManager(downloadManager);

      // create session
      session = new H2HSession(params);
View Full Code Here

Examples of org.infinispan.distexec.DefaultExecutorService.submit()

                log.info("Submitting a task " + key);
                EmbeddedCacheManager cacheManager = cacheManagers.get(random.nextInt(cacheManagers.size()));
                DistributedExecutorService ispnExecutor = new DefaultExecutorService(cacheManager.getCache("serviceGroup"));

                Future<String> z = ispnExecutor.submit(new TransactionTask(), key);
                log.info("Task result=" + z.get());
            } catch (Exception ex) {
                log.warn("error during executing task " + key, ex);
            }
        }
View Full Code Here

Examples of org.infinispan.distexec.DistributedExecutionCompletionService.submit()

                             members, generatedId);
               }
               Callable callable = new ClusterListenerReplicateCallable(generatedId, ourAddress, filter, converter);
               for (Address member : members) {
                  if (!member.equals(ourAddress)) {
                     decs.submit(member, callable);
                  }
               }

               for (int i = 0; i < members.size() - 1; ++i) {
                  try {
View Full Code Here

Examples of org.infinispan.distexec.DistributedExecutorService.submit()

                log.info("Submitting a task " + key);
                EmbeddedCacheManager cacheManager = cacheManagers.get(random.nextInt(cacheManagers.size()));
                DistributedExecutorService ispnExecutor = new DefaultExecutorService(cacheManager.getCache("serviceGroup"));

                Future<String> z = ispnExecutor.submit(new TransactionTask(), key);
                log.info("Task result=" + z.get());
            } catch (Exception ex) {
                log.warn("error during executing task " + key, ex);
            }
        }
View Full Code Here

Examples of org.infinispan.executors.ExecutorAllCompletionService.submit()

         //we can do better here: ATM we load the entries in the caller's thread and process them in parallel
         // we can do the loading (expensive operation) in parallel as well.
         while (rs.next()) {
            InputStream binaryStream = rs.getBinaryStream(1);
            final Bucket bucket = unmarshallBucket(binaryStream);
            ecs.submit(new Callable<Void>() {
               @Override
               public Void call() throws Exception {
                  try {
                     for (MarshalledEntry me : bucket.getStoredEntries(filter, ctx.getTimeService()).values()) {
                        if (!taskContext.isStopped()) {
View Full Code Here

Examples of org.jasig.portal.portlet.rendering.worker.IPortletFailureExecutionWorker.submit()

      return output == null ? "" : output;
    } catch (Exception e) {
        final IPortletFailureExecutionWorker failureWorker = this.portletWorkerFactory.createFailureWorker(request, response, portletWindowId, e);
        // TODO publish portlet error event?
        try {
              failureWorker.submit();
            return failureWorker.getOutput(timeout);
            }
            catch (Exception e1) {
                logger.error("Failed to render error portlet for: " + portletWindowId, e1);
                return "Error Portlet Unavailable. Please contact your portal administrators.";
View Full Code Here

Examples of org.jasig.portal.portlet.rendering.worker.IPortletRenderExecutionWorker.submit()

     * @param response
     * @return
     */
    protected IPortletRenderExecutionWorker startPortletHeaderRenderInternal(IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) {
      IPortletRenderExecutionWorker portletHeaderRenderWorker = this.portletWorkerFactory.createRenderHeaderWorker(request, response, portletWindowId);
      portletHeaderRenderWorker.submit();
     
      final Map<IPortletWindowId, IPortletRenderExecutionWorker> portletHeaderRenderingMap = this.getPortletHeaderRenderingMap(request);
      portletHeaderRenderingMap.put(portletWindowId, portletHeaderRenderWorker);
          
        return portletHeaderRenderWorker;
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.