Examples of execute()


Examples of com.starflow.wf.service.spi.IActivateRuleAction.execute()

    try {
      //beanName 名称后面没有指定调用方法时。直接调用IToolAppAction.execute
      int index = beanName.indexOf("#");
      IActivateRuleAction action = ApplicationContextHolder.getBean(beanName, IActivateRuleAction.class);
      if(index == -1) {
        isStart = action.execute(cloneProcessInstance, cloneActivityInst);
      } else {
        //反射调用bean指定的方法。
        String methodName = beanName.substring(index + 1);
        if("".equals(beanName))
          throw new ProcessEngineException("IActivateRuleAction 实现类Bean:"+beanName+",没有指定方法名称");
View Full Code Here

Examples of com.starflow.wf.service.spi.IApplicationExecptionAction.execute()

    try {
      //beanName 名称后面没有指定调用方法时。直接调用IToolAppAction.execute
      int index = beanName.indexOf("#");
      IApplicationExecptionAction action = ApplicationContextHolder.getBean(beanName, IApplicationExecptionAction.class);
      if(index == -1) {
        action.execute(exception, cloneProcessInstance, cloneActivityInst);
      } else {
        //反射调用bean指定的方法。
        String methodName = beanName.substring(index + 1);
        if("".equals(beanName))
          throw new ProcessEngineException("IApplicationExecptionAction 实现类Bean:"+beanName+",没有指定方法名称");
View Full Code Here

Examples of com.starflow.wf.service.spi.IToolAppAction.execute()

      try {
        //beanName 名称后面没有指定调用方法时。直接调用IToolAppAction.execute
        int index = beanName.indexOf("#");
        IToolAppAction action = ApplicationContextHolder.getBean(beanName, IToolAppAction.class);
        if(index == -1) {
          return action.execute(cloneProcessInstance, cloneActivityInst);
        } else {
          //反射调用bean指定的方法。
          String methodName = beanName.substring(index + 1);
          if("".equals(beanName))
            throw new ProcessEngineException("IToolAppAction 实现类Bean:"+beanName+",没有指定方法名称");
View Full Code Here

Examples of com.sun.enterprise.admin.cli.CLICommand.execute()

            //opts.add(getDomainRootDir().toString());
        }
        if (getDomainName() != null)
            opts.add(getDomainName());

        return cmd.execute(opts.toArray(new String[opts.size()]));
    }
}
View Full Code Here

Examples of com.sun.enterprise.admin.cli.CLIProcessExecutor.execute()

    protected int executeCommand()
            throws CommandException, CommandValidationException {
        try {
            prepareProcessExecutor();
            CLIProcessExecutor cpe = new CLIProcessExecutor();
            cpe.execute("pingDatabaseCmd", pingDatabaseCmd(false), true);
            if (cpe.exitValue() > 0) {
                // if ping is unsuccesfull then database is not up and running
                throw new CommandException(
                    strings.get("StopDatabaseStatus", dbHost, dbPort));
            } else if (cpe.exitValue() < 0) {
View Full Code Here

Examples of com.sun.enterprise.admin.cli.remote.RemoteCLICommand.execute()

    }

    private int bootstrapSecureAdminFiles() throws CommandException {
        RemoteCLICommand rc = new RemoteCLICommand("_bootstrap-secure-admin", this.programOpts, this.env);
        rc.setFileOutputDirectory(instanceDir);
        final int result = rc.execute(new String[] {"_bootstrap-secure-admin"});
        return result;
    }

    /**
     * If --savemasterpassword=true,
View Full Code Here

Examples of com.sun.enterprise.admin.cli.remote.RemoteCommand.execute()

    private int bootstrapSecureAdminFiles() throws CommandException {
        RemoteCommand rc = new RemoteCommand("_bootstrap-secure-admin", this.programOpts, this.env);
        rc.setFileOutputDirectory(instanceDir);
        logger.finest("Download root for bootstrapping: " + instanceDir.getAbsolutePath());
        final int result = rc.execute(new String[] {"_bootstrap-secure-admin"});
        return result;
    }

    /**
     * If --savemasterpassword=true,
View Full Code Here

Examples of com.sun.enterprise.ee.synchronization.TimestampRemoveCommand.execute()

    private void removeTS() {
        for (int i=0; i<_requests.length; i++) {
            try {
                TimestampRemoveCommand trc =
                    new TimestampRemoveCommand(_requests[i], null);
                trc.execute();
            } catch (Exception e) { }
        }
    }

    /**
 
View Full Code Here

Examples of com.sun.enterprise.universal.process.ProcessManager.execute()

        ProcessManager pm = new ProcessManager(fullcommand);
        pm.setStdinLines(stdinLines);

        // XXX should not need this after fix for 12777, but we seem to
        pm.waitForReaderThreads(waitForReaderThreads);
        pm.execute()// blocks until command is complete

        String stdout = pm.getStdout();
        String stderr = pm.getStderr();

        if (output != null) {
View Full Code Here

Examples of com.sun.enterprise.util.ProcessExecutor.execute()

            inputLines = new String[]{}; //to provoke stream closing
        //startCommand = startCommand + " " + instance.getID() + " " + INSTALL_ROOT;
        try {
            sLogger.log(Level.FINE, "general.exec_cmd", startCommand[0]);
      ProcessExecutor executor = new ProcessExecutor(startCommand, inputLines);
      executor.execute();
    }
                catch (ExecException ee) {
                    sLogger.log(Level.WARNING, "general.exec_cmd", ee);
                    throw new RuntimeException(Localizer.getValue(ExceptionType.SERVER_NO_START));
                }
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.