Examples of execute()


Examples of org.serviceconnector.server.StatefulServer.execute()

    do {
      // reset msgType, might have been modified in below execute try
      reqMessage.setMessageType(this.getKey());
      callback = new ExecuteCommandCallback(request, response, responderCallback, sessionId);
      try {
        server.execute(reqMessage, callback, otiOnSCMillis - (i * Constants.WAIT_FOR_FREE_CONNECTION_INTERVAL_MILLIS));
        // no exception has been thrown - get out of wait loop
        break;
      } catch (ConnectionPoolBusyException ex) {
        LOGGER.debug("ConnectionPoolBusyException caught in wait mec of csc execute, tries left=" + tries);
        if (i >= (tries - 1)) {
View Full Code Here

Examples of org.sf.bee.commons.net.http.SimpleHttpClient.execute()

            final SimpleHttpClient client = new SimpleHttpClient();
            client.setMethodType(_method);
            client.setUri(_url);
            client.getMethodParams().putAll(_params);
            // Execute the method.
            _response = client.execute();
            Thread.sleep(10);
        } catch (Exception ex) {
            _error = ex;
        }
    }
View Full Code Here

Examples of org.sfsoft.descargarficheros.tareas.Descarga.execute()

          if (event.getPropertyName().equals("progress")) {
            pbDescarga.setValue((Integer) event.getNewValue());
          }
        }
      });
      descarga.execute();
     
    } catch (Exception e) {
      if (e instanceof MalformedURLException)
        JOptionPane.showMessageDialog(null, "La URL no es correcta", "Descargar Fichero", JOptionPane.ERROR_MESSAGE);
      else if (e instanceof FileNotFoundException)
View Full Code Here

Examples of org.simpleframework.util.thread.Scheduler.execute()

   public void testScheduler() throws Exception {
      Scheduler queue = new Scheduler(10);
      LinkedBlockingQueue<Timer> list = new LinkedBlockingQueue<Timer>();
     
      for(int i = 0; i < ITERATIONS; i++) {
         queue.execute(new Task(list, new Timer(i)), i, TimeUnit.MILLISECONDS);
      }     
      for(Timer timer = list.take(); timer.getValue() < ITERATIONS - 10; timer = list.take()) {
         System.err.println("value=["+timer.getValue()+"] delay=["+timer.getDelay()+"] expect=["+timer.getExpectation()+"]");
      }     
   }
View Full Code Here

Examples of org.skife.jdbi.v2.Batch.execute()

                log.info("Creating table[%s]", tableName);
                final Batch batch = handle.createBatch();
                for(String s : sql) {
                  batch.add(s);
                }
                batch.execute();
              } else {
                log.info("Table[%s] already exists", tableName);
              }
              return null;
            }
View Full Code Here

Examples of org.skife.jdbi.v2.PreparedBatch.execute()

                            part.bind(column, new String(cursor.getString(column), UTF_8));
                            break;
                    }
                }
            }
            batch.execute();
        }
    }

    private Function<MaterializedTuple, String> onlyColumnGetter()
    {
View Full Code Here

Examples of org.skife.jdbi.v2.Update.execute()

        Update u = handle.createStatement(s);
        if (args != null) bindArguments(method.isAnnotationPresent(BindBy.class) ?
                                        method.getAnnotation(BindBy.class).value() :
                                        BindType.Position, u, args);
        Class rt = method.getReturnType();
        int changed = u.execute();
        if (method.getReturnType() == null)
        {
            return null;
        }
        else if (Integer.class.equals(rt) || int.class.equals(rt))
View Full Code Here

Examples of org.snova.http.client.HttpClient.execute()

            "application/octet-stream");
    request.setHeader(HttpHeaders.Names.CONTENT_LENGTH, "0");
    HttpClient client = HttpTunnelService.httpClient;
    try
    {
      client.execute(request, this);
    }
    catch (HttpClientException e)
    {
      logger.error("Pullworker Http client error.", e);
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.business.logic.SearchRelationPostProcessor.execute()

    } catch (InitializationFailedException e) {
      // TODO Better exception handling
      //      This was added after the throw clause in ProcessingModule interface was added)
      e.printStackTrace();
    }
        searchRelationPostProcessor.execute(new ProcessingStatusCallback() {
            public void progress(String module, String currentDescription, Long currentNo, Long totalNo) {
            }

            public void failed(String module, String error) {
            }
View Full Code Here

Examples of org.sonar.api.task.Task.execute()

    if (def == null) {
      throw MessageException.of("Task " + taskKey + " does not exist");
    }
    Task task = getComponentByType(def.taskClass());
    if (task != null) {
      task.execute();
    } else {
      throw new IllegalStateException("Task " + taskKey + " is badly defined");
    }
  }
}
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.