Examples of execute()


Examples of org.persvr.job.Upgrade.execute()

    log.debug(GlobalData.webInfLocation.toString());
    global.put("coreApp", global, new DefaultHandler());
    LocalJsonFileSource.setLocalJsonPath(webappRoot);

    Job upgrade = new Upgrade();
    upgrade.execute();
    log.info("Persevere v" + Persevere.getPersevereVersion() + " Started");
    if(startConsole){
      new Console().start();
    }
    config.getServletContext().setAttribute("testrunner", new TestRunner());
View Full Code Here

Examples of org.prevayler.Prevayler.execute()

   
    public Object execute(PrevaylerCallback callback) {
        logger.debug("Executing callback into Prevayler.");
        try {
            Prevayler prevayler = this.configuration.getPrevaylerInstance();
            return prevayler.execute(new TransactionCommand(callback));
        } catch (Exception ex) {
            throw new PrevaylerTransactionException("Error while executing callback.", ex);
        }
    }
   
View Full Code Here

Examples of org.prevayler.util.memento.MementoTransaction.execute()

  protected void createMementos(MementoCollector collector) {
  }

  protected Account execute(MementoCollector collector) throws Exception {
    MementoTransaction command = new Withdrawal(sourceNumber, amount);
    command.execute(collector, bank);

    command = new Deposit(destinationNumber, amount);
    command.execute(collector, bank);

    return null;
View Full Code Here

Examples of org.primefaces.context.RequestContext.execute()

                if (visit.getLoginVisitante().equals(v.getLoginVisitante())) {
                    visit.setEmAtendimento(true);
                    break;
                }
            }
            requestContext.execute("abrirJanelaBatePapo('" + uid + "','" + v.getLoginVisitante() + "')");

        } catch (Exception ex) {
            tratamentoException.tratar(ex);
        }
    }
View Full Code Here

Examples of org.puremvc.java.multicore.interfaces.ICommand.execute()

    //No reflexion in GWT
    //ICommand commandInstance = (ICommand) commandClassRef.newInstance();
    ICommand commandInstance = (ICommand) this.commandMap.get(note.getName());
    if(commandInstance!=null){
      commandInstance.initializeNotifier(multitonKey);
      commandInstance.execute(note);
    }
  }

  /**
   * Register a particular <code>ICommand</code> class as the handler for a
View Full Code Here

Examples of org.qi4j.tools.shell.help.HelpCommand.execute()

        }
        if( args.length == 0 )
        {
            HelpCommand helpCommand = new HelpCommand();
            helpCommand.setCommands( commands );
            helpCommand.execute( args, input(), output() );
        }
    }

    private boolean contains( String[] args, String s )
    {
View Full Code Here

Examples of org.quartz.Job.execute()

                    method = Job.class.getMethod("execute", JobExecutionContext.class);
                }

                endpoint.beforeDelivery(method);

                job.execute(execution);

            } catch (NoSuchMethodException e) {
                throw new IllegalStateException(e);
            } catch (ResourceException e) {
                throw new JobExecutionException(e);
View Full Code Here

Examples of org.quartz.spi.ThreadExecutor.execute()

        public void initialize() {
            this.manage();

            ThreadExecutor executor = getThreadExecutor();
            executor.execute(ClusterManager.this);
        }

        public void shutdown() {
            shutdown = true;
            this.interrupt();
View Full Code Here

Examples of org.qzerver.model.agent.action.providers.ActionExecutor.execute()

        // Execute action
        ActionResult actionResult;

        try {
            actionResult = actionExecutor.execute(actionDefinition, scheduleExecutionId, address);
            if (actionResult == null) {
                String message = String.format("Action result is null for execution=#[%d] and node=[%s]",
                    scheduleExecutionId, address);
                throw new NullPointerException(message);
            }
View Full Code Here

Examples of org.red5.server.api.scheduling.IScheduledJob.execute()

    ISchedulingService service = null;
    IScheduledJob job = null;
    try {
      service = (ISchedulingService) jobDataMap.get(SCHEDULING_SERVICE);
      job = (IScheduledJob) jobDataMap.get(SCHEDULED_JOB);
      job.execute(service);
    } catch (Throwable e) {
      if (job == null) {
        log.error("Job not found");
      } else {
        log.error("Job {} execution failed", job.toString(), 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.