Package org.apache.uima.ducc.transport.cmdline

Examples of org.apache.uima.ducc.transport.cmdline.JavaCommandLine.addOption()


    String processExceptionHandler = jobRequestProperties.getProperty(JobRequestProperties.key_driver_exception_handler);
    // Command line
    DuccWorkPopDriver driver = new DuccWorkPopDriver(job.getjobBroker(), job.getjobQueue(), crxml, crcfg, meta_time, lost_time, wi_time, processExceptionHandler);
    JavaCommandLine driverCommandLine = new JavaCommandLine(javaCmd);
    driverCommandLine.setClassName(IDuccCommand.main);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_deploy_configruation);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_deploy_components);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_job_id+job.getDuccId().toString());
    // classpath
    String java_classpath = getDuccClasspath(0)// for driver 
    String driverClasspath = jobRequestProperties.getProperty(JobSpecificationProperties.key_classpath);
View Full Code Here


    // Command line
    DuccWorkPopDriver driver = new DuccWorkPopDriver(job.getjobBroker(), job.getjobQueue(), crxml, crcfg, meta_time, lost_time, wi_time, processExceptionHandler);
    JavaCommandLine driverCommandLine = new JavaCommandLine(javaCmd);
    driverCommandLine.setClassName(IDuccCommand.main);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_deploy_configruation);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_deploy_components);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_job_id+job.getDuccId().toString());
    // classpath
    String java_classpath = getDuccClasspath(0)// for driver 
    String driverClasspath = jobRequestProperties.getProperty(JobSpecificationProperties.key_classpath);
    logger.debug(methodName, job.getDuccId(), "driver CP (spec):"+driverClasspath);
View Full Code Here

    DuccWorkPopDriver driver = new DuccWorkPopDriver(job.getjobBroker(), job.getjobQueue(), crxml, crcfg, meta_time, lost_time, wi_time, processExceptionHandler);
    JavaCommandLine driverCommandLine = new JavaCommandLine(javaCmd);
    driverCommandLine.setClassName(IDuccCommand.main);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_deploy_configruation);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_deploy_components);
    driverCommandLine.addOption(IDuccCommand.arg_ducc_job_id+job.getDuccId().toString());
    // classpath
    String java_classpath = getDuccClasspath(0)// for driver 
    String driverClasspath = jobRequestProperties.getProperty(JobSpecificationProperties.key_classpath);
    logger.debug(methodName, job.getDuccId(), "driver CP (spec):"+driverClasspath);
    logger.debug(methodName, job.getDuccId(), "java CP:"+java_classpath);
View Full Code Here

    // Add the user-provided JVM args
    boolean haveXmx = false;
    String driver_jvm_args = jobRequestProperties.getProperty(JobSpecificationProperties.key_driver_jvm_args);
    ArrayList<String> dTokens = QuotedOptions.tokenizeList(driver_jvm_args, true);
    for(String token : dTokens) {
      driverCommandLine.addOption(token);
      if (!haveXmx) {
          haveXmx = token.startsWith("-Xmx");
      }
    }
    // Add any site-provided JVM args, but not -Xmx if the user has provided one
View Full Code Here

    // Add any site-provided JVM args, but not -Xmx if the user has provided one
    String siteJvmArgs = DuccPropertiesResolver.get(DuccPropertiesResolver.ducc_driver_jvm_args);
    dTokens = QuotedOptions.tokenizeList(siteJvmArgs, true);    // a null arg is acceptable
    for (String token : dTokens) {
        if (!haveXmx || !token.startsWith("-Xmx")) {
            driverCommandLine.addOption(token);
        }
    }
   
    // Name the log config file explicitly - the default of searching the user-provided classpath is dangerous
    driverCommandLine.addOption("-Dlog4j.configuration=file://" + Utils.findDuccHome() + "/resources/log4j.xml");
View Full Code Here

            driverCommandLine.addOption(token);
        }
    }
   
    // Name the log config file explicitly - the default of searching the user-provided classpath is dangerous
    driverCommandLine.addOption("-Dlog4j.configuration=file://" + Utils.findDuccHome() + "/resources/log4j.xml");
    // Environment
    String driverEnvironmentVariables = jobRequestProperties.getProperty(JobSpecificationProperties.key_environment);
    int envCountDriver = addEnvironment(job, "driver", driverCommandLine, driverEnvironmentVariables);
    logger.info(methodName, job.getDuccId(), "driver env vars: "+envCountDriver);
    logger.debug(methodName, job.getDuccId(), "driver: "+driverCommandLine.getCommand());
View Full Code Here

      pipelineCommandLine.setClassName("main:provided-by-Process-Manager");
      pipelineCommandLine.setClasspath(processClasspath);
      String process_jvm_args = jobRequestProperties.getProperty(JobSpecificationProperties.key_process_jvm_args);
      ArrayList<String> pTokens = QuotedOptions.tokenizeList(process_jvm_args, true);
      for(String token : pTokens) {
        pipelineCommandLine.addOption(token);
      }
        // Add any site-provided JVM args
          String siteJvmArgs = DuccPropertiesResolver.get(DuccPropertiesResolver.ducc_process_jvm_args);
          pTokens = QuotedOptions.tokenizeList(siteJvmArgs, true);   // a null arg is acceptable
          for(String token : pTokens) {
View Full Code Here

      }
        // Add any site-provided JVM args
          String siteJvmArgs = DuccPropertiesResolver.get(DuccPropertiesResolver.ducc_process_jvm_args);
          pTokens = QuotedOptions.tokenizeList(siteJvmArgs, true);   // a null arg is acceptable
          for(String token : pTokens) {
              pipelineCommandLine.addOption(token);
          }
     
      String processEnvironmentVariables = jobRequestProperties.getProperty(JobSpecificationProperties.key_environment);
      int envCountProcess = addEnvironment(job, "process", pipelineCommandLine, processEnvironmentVariables);
      logger.info(methodName, job.getDuccId(), "process env vars: "+envCountProcess);
View Full Code Here

            String ip = System.getProperty("IP");
            String nodeName = InetAddress.getLocalHost().getHostName();
            Launcher launcher = new Launcher();
            JavaCommandLine cmdLine = new JavaCommandLine("java");
            String duccHome = Utils.findDuccHome();
            cmdLine.addOption("-Dducc.deploy.configuration="+duccHome+"/resources/ducc.properties");
            cmdLine.addOption("-Dducc.deploy.components=agent");
            cmdLine.addOption("-Djava.library.path=" + duccHome +"/lib/sigar");
            cmdLine.addOption("-DDUCC_HOME=" + duccHome);
     
            // System.out.println("Spawning with classpath: \n" + System.getProperty("java.class.path"));
View Full Code Here

            String nodeName = InetAddress.getLocalHost().getHostName();
            Launcher launcher = new Launcher();
            JavaCommandLine cmdLine = new JavaCommandLine("java");
            String duccHome = Utils.findDuccHome();
            cmdLine.addOption("-Dducc.deploy.configuration="+duccHome+"/resources/ducc.properties");
            cmdLine.addOption("-Dducc.deploy.components=agent");
            cmdLine.addOption("-Djava.library.path=" + duccHome +"/lib/sigar");
            cmdLine.addOption("-DDUCC_HOME=" + duccHome);
     
            // System.out.println("Spawning with classpath: \n" + System.getProperty("java.class.path"));
            // cmdLine.setClasspath(duccHome+"/lib/*:" +
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.