Examples of FixFlowScheduleException


Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    return ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getScheduler();
  }
 
  public void schedulerRestart() {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler;
    try {
      scheduler = getScheduler();
      if(scheduler.isInStandbyMode()){
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    }
  }

  public void schedulerStart() {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler;
    try {
      scheduler = getScheduler();
      if(scheduler.isInStandbyMode()){
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    }
  }

  public void schedulerShutdown() {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler;
    try {
      scheduler = getScheduler();
      if(!scheduler.isInStandbyMode()){
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    commandExecutor.execute(new ExecuteConnectorTimeJobCmd(jobExecutionContext));
  }
 
  public List<JobDetail> getJobList(String queryId){
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    List<JobDetail> jobList = new ArrayList<JobDetail>();
    Set<JobKey> set = new HashSet<JobKey>();
    try {
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    return jobList;
  }
 
  public void suspendJob(String name, String group) {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    try {
      scheduler.pauseJob(new JobKey(name,group));
    } catch (SchedulerException e) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    }
  }
 
  public void continueJob(String name, String group) {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    try {
      scheduler.resumeJob(new JobKey(name,group));
    } catch (SchedulerException e) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    }
  }
 
  public List<Trigger> getTriggerList(String jobName, String jobGroup) {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    try{
      @SuppressWarnings("unchecked")
      List<Trigger> triggers = (List<Trigger>) scheduler.getTriggersOfJob(new JobKey(jobName,jobGroup));
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    }
  }
 
  public void suspendTrigger(String triggerName, String triggerGroup) {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    TriggerKey tKey = new TriggerKey(triggerName,triggerGroup);
    try {
      scheduler.pauseTrigger(tKey);
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

    }
  }
 
  public void continueTrigger(String triggerName, String triggerGroup) {
    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    TriggerKey tKey = new TriggerKey(triggerName,triggerGroup);
    try {
      scheduler.resumeTrigger(tKey);
View Full Code Here

Examples of com.founder.fix.fixflow.core.exception.FixFlowScheduleException

      } catch (Exception e) {
       
        LOG.error("节点: "+this.getName()+"("+this.getId()+") 在离开时,清理定时任务数据出错,错误信息: "+e.getMessage(),e);
       
        throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_NODELEAVECLEANQUARTZ,this.getId(),this.getName(),e);
       
      }

    }
   
   
    try {
     
      if (StringUtil.getBoolean(Context.getProcessEngineConfiguration().getQuartzConfig().getIsEnable())) {
        Scheduler scheduler = Context.getProcessEngineConfiguration().getSchedulerFactory().getScheduler();
        Set<JobKey> jobKeys = new HashSet<JobKey>();
        jobKeys = scheduler.getJobKeys(GroupMatcher.jobGroupContains(tokenEntity.getId()));
        if (jobKeys.size() > 0) {
          List<JobKey> jobKeysList = new ArrayList<JobKey>();
          jobKeysList.addAll(jobKeys);
          scheduler.deleteJobs(jobKeysList);
        }
      }
     
    } catch (Exception e) {
     
      LOG.error("节点: "+this.getName()+"("+this.getId()+") 在离开时,清理定时任务数据出错,错误信息: "+e.getMessage(),e);
     
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_NODELEAVECLEANQUARTZ,this.getId(),this.getName(),e);
     
     
    }
   
   
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.