Examples of execute()


Examples of lpa.command.CompoundCommand.execute()

                    if (!undoStack.isEmpty()) {
                        Command last_edge_action = undoStack.pop();
                        last_edge_action.undo();
                        c.add(last_edge_action);
                    }
                    c.execute();
                    undoStack.add(c);
                }

                textArea.setText(grid.toString());
                errorLabel.setText(grid.checkGrid());
View Full Code Here

Examples of lupos.event.action.Action.execute()

  @Override
  public void queryResultReceived(QueryResult qr, Subscription sub) {
    System.out.println("QUERY RESULT RECEIVED");
    if(this.subscriptionActionMap.containsKey(sub)) {
      Action action = this.subscriptionActionMap.get(sub);
      action.execute(qr);
    }
  }

  /**
   * After a disconnect, this could be a sign for
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.action.ActionRunner.execute()

        String ipAddress = getThreadLocalRequest().getRemoteAddr();
        String className = action.getClass().getSimpleName();
        logger.info("User {} (ip: {}) executing action: {}", new Object[]{userNickname, ipAddress, className});

        try {
            return (T) actionRunner.execute(action);
        } catch (Exception e) {
            logger.error("Caught Exception", e);
            throw new RpcException(e.getMessage());
        }
    }
View Full Code Here

Examples of marauroa.server.db.DBTransaction.execute()

  }

  private void cleanDB() throws SQLException {
    final DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      transaction.execute("DELETE FROM character_stats where name='player';", null);
      transaction.execute("DELETE FROM rpobject WHERE object_id IN (SELECT object_id FROM characters WHERE characters.charname = 'player');", null);
      transaction.execute("DELETE FROM characters WHERE characters.charname = 'player';", null);
      TransactionPool.get().commit(transaction);
    } catch (final SQLException e) {
      TransactionPool.get().rollback(transaction);
View Full Code Here

Examples of match.api.Event.execute()

        this.match = new Match(UUID.randomUUID(), createdMatchEvent.getPlayersMap());

        // Execute all arisen events.
        while (iterator.hasNext()) {
            Event next = iterator.next();
            next.execute(this.match);
        }
    }

    public Match getMatch() {
        return match;
View Full Code Here

Examples of mate00.parafia.net.MinistrantWorker.execute()

                while(mShouldWorkerWork) {
                    MinistrantWorker worker = new MinistrantWorker(ParafiaView.this);
                    worker.setConfiguration(mWorkerConfig);
                    worker.setExpeditionDetails(mDetails);
                    worker.setExpedition(expedition);
                    worker.execute();
                   
                    sleepInMins(mDelay);
                }
            }
        });
View Full Code Here

Examples of me.prettyprint.hector.api.mutation.Mutator.execute()

                    genericOutputSerializer).setTtl(ttl);

            mutator.addInsertion(reading.getSensorId(), columnFamilyName, column);
        }

        mutator.execute();
    }

    @Override
    public List<Reading> querySensorReadingsByInterval(UUID sensorId, Interval interval, int maxToReturn) {
        SliceQuery<UUID, DateTime, Reading> query = HFactory.createSliceQuery(keyspace, us, ds, rs);
View Full Code Here

Examples of me.prettyprint.hector.api.query.RangeSlicesQuery.execute()

            getSerializer(columnNameSerializer), getSerializer(valueSerializer))
            .setColumnFamily(columnFamily)
            .setRange(null, null, false, numCols).setRowCount(numRows);
            //.setKeys(lastKey, null);

        QueryResult<OrderedRows<K, N, V>> result = rangeSlicesQuery.execute();
        OrderedRows<K, N, V> orderedRows = result.get();
        List<Row<K, N, V>> rows = orderedRows.getList();
        return getRows(rows);

View Full Code Here

Examples of me.prettyprint.hector.api.query.SuperSliceQuery.execute()

        SuperSliceQuery query = HFactory.createSuperSliceQuery(keyspace, us, ls, ss, ByteBufferSerializer.get());

        query.setColumnFamily(columnFamilyName).setKey(sensorId).setRange(interval.getStartMillis(), interval.getEndMillis(),
                false, maxToReturn);

        QueryResult<SuperSlice<UUID, String, ByteBuffer>> result = query.execute();

        List<HSuperColumn<UUID, String, ByteBuffer>> rows = result.get().getSuperColumns();

        List<Reading> readings = new ArrayList<Reading>();
View Full Code Here

Examples of mitza.dynamic.compile.Executable.execute()

      log.debug("componentUri={}, componentTemplateUri={}", componentUri, componentTemplateUri);

      DcpClassLoader loader = new DcpClassLoader(componentUri, componentTemplateUri);
      Executable dcpExecutable = loader.getExecutable();
      log.debug("Got Executable '{}'", dcpExecutable);
      String result = dcpExecutable.execute();

      JspContext context = getJspContext();
      JspWriter out = context.getOut();
      out.write(result);
    } catch (Exception e) {
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.