Package com.taobao.zeus.model.processer

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


  public static Processer parse(JSONObject o){
    Processer result=null;
    String id=o.getString("id");
    if("download".equals(id)){
      result= new DownloadProcesser();
    }else if("zookeeper".equalsIgnoreCase(id)){
      result=new ZooKeeperProcesser();
      result.parse(o.getString("config"));
    }else if("mail".equalsIgnoreCase(id)){
      result=new MailProcesser();
View Full Code Here


    JobDescriptor job=new JobDescriptor();
    job.setOwner(user);
    job.setName(jobName);
    job.setGroupId(parentGroup);
    job.setJobType(jobType);
    job.setPreProcessers(Arrays.asList((Processer)new DownloadProcesser()));
    JobPersistence persist=PersistenceAndBeanConvert.convert(job);
    persist.setGmtCreate(new Date());
    persist.setGmtModified(new Date());
    getHibernateTemplate().save(persist);
    return PersistenceAndBeanConvert.convert(persist).getX();
View Full Code Here

TOP

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

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.