Examples of execute()


Examples of EDU.oswego.cs.dl.util.concurrent.Executor.execute()

     
      Executor executor = new ThreadedExecutor();
      FutureResult future = new FutureResult();

      Runnable command = future.setter(new ProcessEvictionRegion(region, algorithm));
      executor.execute(command);
     
      try
      {
         future.timedGet(20000);
      }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.PooledExecutor.execute()

        }
        if (p == null) {
            throw new IllegalStateException("ThreadPool has been stopped");
        }
        Runnable task = new ContextClassLoaderRunnable(command, classLoader);
        p.execute(task);
    }

    public void doStart() throws Exception {
    }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.ThreadedExecutor.execute()

                try {
                    spoolQueue = new SpooledBoundedPacketQueue(brokerConnector.getBrokerContainer().getBroker()
                            .getTempDir(), spoolName);
                    final BoundedPacketQueue bpq = spoolQueue;
                    ThreadedExecutor exec = new ThreadedExecutor();
                    exec.execute(new Runnable() {
                        public void run() {
                            while (!closed.get()) {
                                try {
                                    Packet packet = bpq.dequeue();
                                    if (packet != null){
View Full Code Here

Examples of ProcessExecuting.ProcessExecutor.execute()

        ProcessExecutor executor = new ProcessExecutor(
                program.getExecuteCmd(),
                program.getDirPath(), 3000); // выполняет программу
        boolean ise = false; // internal server error
        try {
            executor.execute(); // throws ProcessRunningException (невозможно в данном случае),
            // ProcessCanNotBeRunException (ошибка на сервере - нельзя запустить процесс)
            inputWriter = new BufferedWriter(
                    new OutputStreamWriter(executor.getOutputStream())); // throws ProcessNotRunningException
            testInputReader = new BufferedReader(
                    inputGenerator.getReader(testNumber));
View Full Code Here

Examples of ProgramTesting.ProgramTester.execute()

        OutputDataProcessor outputDataProcessor = new SimpleOutputDataProcessor();
        ProgramTester tester = new ProgramTester(
                inputGenerator, outputGenerator,
                inputDataProcessor, outputDataProcessor);
        try {
            tester.execute(p);
            return true;
        } catch (UnsuccessException e) {
            comment.append(ExitCodes.getMsg(ExitCodes.UNSUCCESS));
            error.append("Failed tests: " + e.getMessage());
            res = ExitCodes.UNSUCCESS;
View Full Code Here

Examples of abstrasy.Interpreter.execute()

        }
        String serial2str = new String(sbuff, "UTF-8");
        Interpreter interpreter = Interpreter.interpr_getNewChildInterpreter();
        interpreter.setSource(serial2str);
        interpreter.compile();
        return interpreter.execute();
    }

    public Node external_mutator_load_gz(Node startAt) throws Exception {
        startAt.isGoodArgsCnt(1);
        SELF.require_SELF_mutable();
View Full Code Here

Examples of actions.Action.execute()

          throw new Exception("Commande Erronée !");
        }
       
        System.out.println("cmd = "+cmd);
       
        String next = a.execute(req);       
        String suivant = SEP+next;
               
        System.out.println("suivant = "+suivant);
        RequestDispatcher rq = context.getRequestDispatcher(suivant);
        rq.forward(req,res);
View Full Code Here

Examples of algo.FlightDijkstra.execute()

      time += 60*12;
    }

    time = StandardOps.toGMT(time, ((AirportSpecs)from.element()).GMToffset());

    alg.execute(dataSet_, from, to, time);

    try {
      queryData_.setPath(alg.reportPath());
      int t = alg.distance(to);
View Full Code Here

Examples of android.database.sqlite.SQLiteStatement.execute()

  public int update(String statement, Object[] args, FieldType[] argFieldTypes) throws SQLException {
    SQLiteStatement stmt = null;
    try {
      stmt = db.compileStatement(statement);
      bindArgs(stmt, args, argFieldTypes);
      stmt.execute();
      return 1;
    } catch (android.database.SQLException e) {
      throw SqlExceptionUtil.create("updating database failed: " + statement, e);
    } finally {
      if (stmt != null) {
View Full Code Here

Examples of anvil.script.CompilableFunction.execute()

      {
        CompilableFunction function = (CompilableFunction)_type;
        if (function.isInnerFunction()) {
          throw context.CallError("Cannot call inner function: " + _type.toString());
        }
        return function.execute(context, parameters);
      }
     
    case Type.INTERFACE_METHOD:
      {
        throw context.CallError("Cannot call interface method: " + _type.toString());
View Full Code Here
TOP
Copyright © 2015 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.