Examples of run()


Examples of com.sun.tools.ws.wscompile.WsimportTool.run()

         // enforce woodstox
         if (null == System.getProperty("javax.xml.stream.XMLInputFactory"))
            System.setProperty("javax.xml.stream.XMLInputFactory", "com.ctc.wstx.stax.WstxInputFactory");

         WsimportTool compileTool = new WsimportTool(stream);
         boolean success = compileTool.run(args.toArray(new String[args.size()]));

         if (!success)
            throw new IllegalStateException("WsImport invocation failed. Try the verbose switch for more information");
      }
      catch (Throwable t)
View Full Code Here

Examples of com.sun.xml.rpc.spi.tools.CompileTool.run()

        wscompileArgs[argsIndex++] = "-" + operation;
        wscompileArgs[argsIndex++] = "-keep";       
        wscompileArgs[argsIndex++] = configFile.getPath();

        CompileTool tool = JaxRpcObjectFactory.newInstance().createCompileTool(output, "wscompile");
        if(!tool.run(wscompileArgs))
            throw new WsCompileInvokerException("wscompile invocation failed");
    }
   
/**
* This is used to generate WSDL and mapping files given information on SEI config
View Full Code Here

Examples of com.taobao.top.analysis.node.operation.JobDataOperation.run()

                        }

                    }
                    JobDataOperation jobd =
                            new JobDataOperation(j, AnalysisConstants.JOBMANAGER_EVENT_EXPORTDATA, this.config);
                    jobd.run();
                    logger.info("releaseResouce now, export job : " + j.getJobName());
//                    while(!j.getTrunkExported().get())
//                        Thread.sleep(3000);
//                    if (!j.isExported().get()) {
//                        jobExporter.exportReport(j, false);
View Full Code Here

Examples of com.taobao.zeus.jobs.Job.run()

            context.getManualRunnings().put(historyId, job);

            Integer exitCode = -1;
            Exception exception = null;
            try {
              exitCode = job.run();
            } catch (Exception e) {
              exception = e;
              history.getLog().appendZeusException(e);
            } finally {
              JobHistory jobHistory = context
View Full Code Here

Examples of com.taobao.zeus.jobs.sub.tool.DataPreviewJob.run()

            "hadoop.hadoop.job.ugi");
        jobContext.getProperties().setProperty(
            "preview.hadoop.job.ugi", ugi);
      }
      DataPreviewJob job = new DataPreviewJob(jobContext);
      job.run();
      String logContent = job.getJobContext().getJobHistory().getLog()
          .getContent();
      // log.error("---\n" + logContent + "============\n");
      List<Tuple<Integer, List<String>>> datas = new ArrayList<Tuple<Integer, List<String>>>();
      int count = 0;
View Full Code Here

Examples of com.taobao.zeus.jobs.sub.tool.MemUseRateJob.run()

    try {
      int exitCode = -1;
      int count = 0;
      while(count<3 && exitCode!=0){
        count++;
        exitCode=job.run();
      }
      if(exitCode!=0) {
        ScheduleInfoLog.error("HeartBeat Shell Error",new Exception(jobContext.getJobHistory().getLog().getContent()));
        // 防止后面NPE
        jobContext.putData("mem", 1.0);
View Full Code Here

Examples of com.taobao.zeus.jobs.sub.tool.UploadHdfsFileJob.run()

        JobContext jobContext=new JobContext();
        jobContext.setWorkDir(temp.getParent());
        jobContext.setJobHistory(history);
        jobContext.setProperties(new HierarchyProperties(new HashMap<String, String>()));
        UploadHdfsFileJob job=new UploadHdfsFileJob(jobContext, temp.getAbsolutePath(), hdfsLibPath);
        Integer exitCode=job.run();
        if(exitCode!=0){
          log.error(history.getLog().getContent());
          resp.getWriter().write(history.getLog().getContent());
        }else{
          resp.getWriter().write("[[uri=hdfs://"+hdfsLibPath+File.separator+temp.getName()+"]]");
View Full Code Here

Examples of com.thaiopensource.relaxng.translate.Driver.run()

    }

    private void runTrang(File outputFile) {
        String[] args = createArgs(outputFile);
        Driver trang = new Driver();
        trang.run(args);
    }

    private String[] createArgs(File outputFile) {
        List<String> args = Lists.newArrayList("-I", "xml");
        if (StringUtils.isNotEmpty(inputEncoding)) {
View Full Code Here

Examples of com.thoughtworks.xstream.tools.benchmark.Harness.run()

        }
        harness.addTarget(new BasicTarget());
        harness.addTarget(new ExtendedTarget());
        harness.addTarget(new ReflectionTarget());
        harness.addTarget(new SerializableTarget());
        harness.run(new TextReporter(new PrintWriter(System.out, true)));
        System.out.println("Done.");
    }
}
View Full Code Here

Examples of com.tommytony.war.job.LoadoutResetJob.run()

    War.war.getKillstreakReward().getAirstrikePlayers().remove(player.getName());

    final LoadoutResetJob job = new LoadoutResetJob(this, team, player, isFirstRespawn, false);
    if (team.getTeamConfig().resolveInt(TeamConfig.RESPAWNTIMER) == 0 || isFirstRespawn) {
      job.run();
    }     
    else {
      // "Respawn" Timer - player will not be able to leave spawn for a few seconds
      respawn.add(player);
     
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.