Package com.taobao.zeus.model.processer

Examples of com.taobao.zeus.model.processer.JobProcesser


      result.parse(o.getString("config"));
    }else if("OutputClean".equalsIgnoreCase(id)){
      result=new OutputCleanProcesser();
      result.parse(o.getString("config"));
    }else if("JobProcesser".equalsIgnoreCase(id)){
      result=new JobProcesser();
      result.parse(o.getString("config"));
    }else if("hive".equalsIgnoreCase(id)){
      result = new HiveProcesser();
      result.parse(o.getString("config"));
    }
View Full Code Here


        Integer depth=(Integer) jobContext.getData("depth");
        if(depth==null){
          depth=0;
        }
        if(depth<2){//job 的递归深度控制,防止无限递归
          JobProcesser jobProcesser=(JobProcesser) p;
          GroupManager groupManager=(GroupManager) applicationContext.getBean("groupManager");
          JobBean jb=groupManager.getUpstreamJobBean(jobProcesser.getJobId());
          if(jb!=null){
            for(String key:jobProcesser.getKvConfig().keySet()){
              if(jobProcesser.getKvConfig().get(key)!=null){
                jb.getJobDescriptor().getProperties().put(key, jobProcesser.getKvConfig().get(key));
              }
            }
            File direcotry=new File(workDir+File.separator+"job-processer-"+jobProcesser.getJobId());
            if(!direcotry.exists()){
              direcotry.mkdirs();
            }
            JobContext sub=new JobContext(jobContext.getRunType());
            sub.putData("depth", ++depth);
View Full Code Here

TOP

Related Classes of com.taobao.zeus.model.processer.JobProcesser

Copyright © 2018 www.massapicom. 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.