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

Examples of com.google.code.lightssh.project.scheduler.entity.JobQueue.incFailureCount()


          throw new ApplicationException("返回结果Result[key="
              +result.getKey()+"]关联Object为空!");
        }
       
        if( !result.isSuccess() && item != null ){
          item.incFailureCount();
          item.setStatus(JobQueue.Status.FAILURE );
          item.setErrMsg(result.getMessage());
        }
      }
    }catch( Exception e ){
View Full Code Here


    }catch( Exception e ){
      results = new ArrayList<Result>();
      for(JobQueue item:items){
        results.add(new Result(false,item.getRefId(),item,e.getMessage()));
       
        item.incFailureCount();
        item.setStatus( JobQueue.Status.FAILURE );
       
        String errMsg = e.getMessage()+(e.getCause()==null?"":e.getCause().getMessage());
        item.setErrMsg( errMsg.length()>199?errMsg.substring(0,199):errMsg );
       
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.