Examples of execute()


Examples of com.volantis.xml.pipeline.sax.drivers.web.HTTPRequestExecutor.execute()

        if (params != null) {
            url = url + params;
        }
        HTTPRequestExecutor request = testInstance.createHTTPRequestExecutor(
            url, type, HTTPVersion.HTTP_1_1, null, null);
        HTTPResponseAccessor result = request.execute();
        request.release();

        return result;
    }
View Full Code Here

Examples of com.workplacesystems.utilsj.threadpool.WorkerThread.execute()

                    try
                    {
                        if (event_callback.acceptEvent(event_code))
                        {
                            WorkerThread callback_thread = (WorkerThread)event_callback_pool.borrowObject();
                            callback_thread.execute(new Runnable() {
                                public void run()
                                {
                                    GregorianCalendar event_time = new GregorianCalendar(
                                            Integer.parseInt(event.substring(0, 4)),
                                            Integer.parseInt(event.substring(4, 6)),
View Full Code Here

Examples of com.xebialabs.overthere.OverthereConnection.execute()

    options.set(PASSWORD, "secret");
    options.set(OPERATING_SYSTEM, UNIX);
    options.set(CONNECTION_TYPE, SFTP);
    OverthereConnection connection = Overthere.getConnection("ssh", options);
    try {
      connection.execute(CmdLine.build("cp", "/etc/motd", "/tmp/motd1"));
      OverthereFile motd1 = connection.getFile("/tmp/motd1");
      OverthereFile motd2 = connection.getFile("/tmp/motd2");
      motd2.delete();

      System.err.println("Exists #1: " + motd1.exists());
View Full Code Here

Examples of com.yahoo.ycsb.client.MasterClient.execute()

    props = fileprops;
   
    MasterClient client = MasterClient.getMasterClient();
    client.init();
    client.setupSlaves();
    client.execute();
    client.shutdownSlaves();
  }
 
  public static void checkMoreArgs(int argindex, int argslength) {
    if (argindex >= argslength) {
View Full Code Here

Examples of com.yahoo.ycsb.rmi.SlaveRMIInterface.execute()

   
    while (itr.hasNext()) {
      String key = itr.next();
      try {
        SlaveRMIInterface loadgen = (SlaveRMIInterface) rmiClients.get(key).lookup(SlaveClient.REGISTRY_NAME);
        res = loadgen.execute();
        if (res != 0)
          System.out.println("Error executing slave");
      } catch (NotBoundException e) {
        LOG.error("Could not run test with " + key + " because slave was not bound");
      }catch (RemoteException e) {
View Full Code Here

Examples of com.yammer.tenacity.tests.TenacityFailingCommand.execute()

    @Test
    public void loggerLogsOnExpectedException() throws Exception {
        HystrixPlugins.getInstance().registerCommandExecutionHook(new ExceptionLoggingCommandHook(exceptionLogger));
        final HystrixCommand<String> failingCommand = new TenacityFailingCommand();

        failingCommand.execute();

        final List<RuntimeException> loggedExceptions = exceptionLogger.getLoggedExceptions();
        assertEquals(1, loggedExceptions.size());
        assertTrue(loggedExceptions.get(0).getClass().equals(RuntimeException.class));
    }
View Full Code Here

Examples of com.youtube.vitess.vtgate.VtGate.execute()

    Query insertQuery = new QueryBuilder(insertSql, testEnv.keyspace, "master")
        .addBindVar(BindVariable.forULong("id", UnsignedLong.valueOf("1")))
        .addBindVar(BindVariable.forULong("keyspace_id", ((UnsignedLong) kid.getId())))
        .addKeyspaceId(kid).build();
    vtgate.begin();
    vtgate.execute(insertQuery);
    vtgate.commit();
    vtgate.begin();
    try {
      vtgate.execute(insertQuery);
      Assert.fail("failed to throw exception");
View Full Code Here

Examples of com.zeroturnaround.liverebel.api.update.ConfigurableUpdate.execute()

        .on(serverIds); // update only given servers - null means all servers
    // start update
    log.info("Starting to update application '{}' with rolling restart to '{}' - " +
        "this takes time proportinally to session drain timeout - to follow the progress, open browser at {}",
        appName, version, centerAddress);
    update.execute();
    log.info("Servers are now updated");
  }

  private static String getLatestVersionId(CommandCenter center, String appName) {
    ApplicationInfo application = center.getApplication(appName);
View Full Code Here

Examples of connectivity.tools.RowSet.execute()

    // --------------------------------------------------------------------------------------------------------
    private void verifyEqualRowSetContent( int _outerCommandType, String _outerCommand, int _innerCommandType, String _innerCommand ) throws SQLException
    {
        RowSet outerRowSet = m_database.getDatabase().createRowSet( _outerCommandType, _outerCommand );
        outerRowSet.execute();

        RowSet innerRowSet = m_database.getDatabase().createRowSet( _innerCommandType, _innerCommand );
        innerRowSet.execute();

        outerRowSet.last();
View Full Code Here

Examples of controller.commands.Attack.execute()

    //Still have some problem that how far need to move? Moving and attacking is in different round or in same round?
    Move moving = new Move();
    moving.moveTo(map.getMoveToX(), map.getMoveToY());
    moving.execute(map.getSelectedAlly(), map.getSelectedEnemy());
    Command attacking = new Attack();
    attacking.execute(map.getSelectedAlly(), map.getSelectedEnemy());
  }

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