Examples of pauseJob()


Examples of org.pentaho.platform.api.scheduler2.IScheduler.pauseJob()

  }

  /** {@inheritDoc} */
  public void pauseJob( String jobId ) throws SchedulerException {
    IScheduler scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null ); //$NON-NLS-1$
    scheduler.pauseJob( jobId );
  }

  /** {@inheritDoc} */
  public void removeJob( String jobId ) throws SchedulerException {
    IScheduler scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null ); //$NON-NLS-1$
View Full Code Here

Examples of org.quartz.Scheduler.pauseJob()

      // remove logger appender
      log4JLogger.removeAppender(writerAppender);
      // pause log update trigger job
      try {
        Scheduler scheduler = (Scheduler) CoreSpringFactory.getBean("schedulerFactoryBean");
        scheduler.pauseJob(jobName, LOG_DISPLAYER_GROUP);
      } catch (SchedulerException e) {
        logError("Can not pause log viewer job", e);
      }
    }
    if (source == startLink) {
View Full Code Here

Examples of org.quartz.Scheduler.pauseJob()

  /** {@inheritDoc} */
  public void pauseJob( String jobId ) throws SchedulerException {
    try {
      Scheduler scheduler = getQuartzScheduler();
      scheduler.pauseJob( jobId, QuartzJobKey.parse( jobId ).getUserName() );
    } catch ( org.quartz.SchedulerException e ) {
      throw new SchedulerException( Messages.getInstance()
          .getString( "QuartzScheduler.ERROR_0005_FAILED_TO_PAUSE_JOBS" ), e ); //$NON-NLS-1$
    }
  }
View Full Code Here

Examples of org.quartz.Scheduler.pauseJob()

    if(!getIsEnabled()){
      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    try {
      scheduler.pauseJob(new JobKey(name,group));
    } catch (SchedulerException e) {
      throw new FixFlowException(e.getMessage(),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.