Package org.quartz

Examples of org.quartz.Calendar


      // Register Calendars.
      if (this.calendars != null) {
        for (Iterator it = this.calendars.keySet().iterator(); it.hasNext();) {
          String calendarName = (String) it.next();
          Calendar calendar = (Calendar) this.calendars.get(calendarName);
          this.scheduler.addCalendar(calendarName, calendar, true, true);
        }
      }

      // Register Triggers.
View Full Code Here


      }

      // Register Calendars.
      if (this.calendars != null) {
        for (String calendarName : this.calendars.keySet()) {
          Calendar calendar = this.calendars.get(calendarName);
          getScheduler().addCalendar(calendarName, calendar, true, true);
        }
      }

      // Register Triggers.
View Full Code Here

      }

      // Register Calendars.
      if (this.calendars != null) {
        for (String calendarName : this.calendars.keySet()) {
          Calendar calendar = this.calendars.get(calendarName);
          getScheduler().addCalendar(calendarName, calendar, true, true);
        }
      }

      // Register Triggers.
View Full Code Here

      // Register Calendars.
      if (this.calendars != null) {
        for (Iterator it = this.calendars.keySet().iterator(); it.hasNext();) {
          String calendarName = (String) it.next();
          Calendar calendar = (Calendar) this.calendars.get(calendarName);
          getScheduler().addCalendar(calendarName, calendar, true, true);
        }
      }

      // Register Triggers.
View Full Code Here

      // Register Calendars.
      if (this.calendars != null) {
        for (Iterator it = this.calendars.keySet().iterator(); it.hasNext();) {
          String calendarName = (String) it.next();
          Calendar calendar = (Calendar) this.calendars.get(calendarName);
          this.scheduler.addCalendar(calendarName, calendar, true, true);
        }
      }

      // Register Triggers.
View Full Code Here

  }

  public List<Date> getNextFireTimes(int maxCount) {
    List<Date> result = Lists.newArrayList();
    OperableTrigger baseTrigger = (OperableTrigger)((OperableTrigger)trigger).clone();
    Calendar baseCalendar = null;

    if (baseTrigger.getNextFireTime() == null) {
      baseTrigger.computeFirstFireTime(baseCalendar);
    }
View Full Code Here

    Date tnft = tw.trigger.getNextFireTime();
    if (tnft == null || tnft.getTime() > misfireTime) {
      return false;
    }

    Calendar cal = null;
    if (tw.trigger.getCalendarName() != null) {
      cal = retrieveCalendar(null, tw.trigger.getCalendarName());
    }

    signaler.notifyTriggerListenersMisfired((Trigger) tw.trigger.clone());
View Full Code Here

    // acquired?
    if (tw.state != TriggerWrapper.STATE_ACQUIRED) {
      return null;
    }

    Calendar cal = null;
    if (tw.trigger.getCalendarName() != null) {
      cal = retrieveCalendar(ctxt, tw.trigger.getCalendarName());
      if (cal == null)
        return null;
    }
View Full Code Here

    jobDetail.setJobDataMap( jobDataMap );
    return jobDetail;
  }

  private Calendar createQuartzCalendar( ComplexJobTrigger complexJobTrigger ) {
    Calendar triggerCalendar = null;
    if ( ( complexJobTrigger.getStartTime() != null ) || ( complexJobTrigger.getEndTime() != null ) ) {
      triggerCalendar =
          new QuartzSchedulerAvailability( complexJobTrigger.getStartTime(), complexJobTrigger.getEndTime() );
    }
    return triggerCalendar;
View Full Code Here

   
    if(trigger.getEndTime() !=null ){
      quartzTrigger.setEndTime( trigger.getEndTime() );
    }

    Calendar triggerCalendar =
        quartzTrigger instanceof CronTrigger ? createQuartzCalendar( (ComplexJobTrigger) trigger ) : null;

    if ( outputStreamProvider != null ) {
      jobParams.put( RESERVEDMAPKEY_STREAMPROVIDER, outputStreamProvider );
    }
View Full Code Here

TOP

Related Classes of org.quartz.Calendar

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.