Package com.google.code.lightssh.project.scheduler.entity

Examples of com.google.code.lightssh.project.scheduler.entity.SchedulerType


    if( page == null )
      page = new ListPage<JobQueue>();
   
    page.addAscending("createdTime");
    JobQueue t = new JobQueue();
    SchedulerType type = new SchedulerType();
    type.setId(jobTypeId);
    t.setType( type );
   
    return list(page, t);
  }
View Full Code Here


 
  /**
   * 任务入队列
   */
  public void jobInQueue( String jobType,String jobName,int maxSendCount,String[] refIds,Calendar invokeTime ){
    SchedulerType type = null;
    if( !StringUtils.isEmpty(jobType) && !StringUtils.isEmpty(jobName) ){
      type = schedulerTypeManager.safeGet(jobType,jobName);
    }else{
      type = schedulerTypeManager.get(jobType);
    }
View Full Code Here

    return safeGet(id,name,null);
  }

  @Override
  public SchedulerType safeGet(String id, String name, String description) {
    SchedulerType type = dao.read(id);
    if( type == null ){
      type = new SchedulerType(id,name);
      type.setDescription(description);
      dao.create(type);
    }
   
    return type;
  }
View Full Code Here

    details = PlanDetail.sort(details); //排序
   
    List<Result> results = new ArrayList<Result>();//返回结果
    Map<String,Result> mapResults = new HashMap<String,Result>();
    for( PlanDetail detail:details ){
      SchedulerType type = detail.getType();
      String key = detail.getId();
      Result result = null;
      if( type == null || StringUtils.isEmpty(type.getId()) ){
        result = new Result(false,key,mapQueue.get(key)
            ,"关联业务数据["+key+"]类型为空,无法进行业务处理。");
        mapResults.put(key,result);
        continue;
      }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.project.scheduler.entity.SchedulerType

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.