Package org.quartz

Examples of org.quartz.Calendar


            throws SchedulerException {
        validateState();

        trigger.validate();

        Calendar cal = null;
        if (trigger.getCalendarName() != null) {
            cal = resources.getJobStore().retrieveCalendar(ctxt,
                    trigger.getCalendarName());
            if(cal == null)
                throw new SchedulerException(
View Full Code Here


        if(groupName == null)
            groupName = Scheduler.DEFAULT_GROUP;

        newTrigger.validate();

        Calendar cal = null;
        if (newTrigger.getCalendarName() != null) {
            cal = resources.getJobStore().retrieveCalendar(ctxt,
                    newTrigger.getCalendarName());
        }
        Date ft = newTrigger.computeFirstFireTime(cal);
View Full Code Here

        if (getMisfireThreshold() > 0) misfireTime -= getMisfireThreshold();

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

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

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

        // was the trigger blocked since being acquired?
        if (tw.state == TriggerWrapper.STATE_BLOCKED) return null;
        // was the trigger paused and blocked since being acquired?
        if (tw.state == TriggerWrapper.STATE_PAUSED_BLOCKED) return null;
       
        Calendar cal = null;
        if (tw.trigger.getCalendarName() != null)
                cal = retrieveCalendar(ctxt, tw.trigger.getCalendarName());
        Date prevFireTime = trigger.getPreviousFireTime();
        // call triggered on our copy, and the scheduler's copy
        tw.trigger.triggered(cal);
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

  }

  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

    JobDataMap localJobDataMap;
    switch (paramInt)
    {
    case 0:
      String str1;
      Calendar localCalendar1;
      boolean bool11;
      boolean bool15;
      try
      {
        ObjectInput localObjectInput42 = paramRemoteCall.getInputStream();
        localObject1 = (SchedulingContext)localObjectInput42.readObject();
        str1 = (String)localObjectInput42.readObject();
        localCalendar1 = (Calendar)localObjectInput42.readObject();
        bool11 = localObjectInput42.readBoolean();
        bool15 = localObjectInput42.readBoolean();
      }
      catch (IOException localIOException111)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException111);
      }
      catch (ClassNotFoundException localClassNotFoundException44)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException44);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      localQuartzScheduler.addCalendar((SchedulingContext)localObject1, str1, localCalendar1, bool11, bool15);
      try
      {
        paramRemoteCall.getResultStream(true);
      }
      catch (IOException localIOException93)
      {
        throw new MarshalException("error marshalling return", localIOException93);
      }
    case 1:
      try
      {
        ObjectInput localObjectInput1 = paramRemoteCall.getInputStream();
        localObject1 = (JobListener)localObjectInput1.readObject();
      }
      catch (IOException localIOException45)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException45);
      }
      catch (ClassNotFoundException localClassNotFoundException1)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException1);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      localQuartzScheduler.addGlobalJobListener((JobListener)localObject1);
      try
      {
        paramRemoteCall.getResultStream(true);
      }
      catch (IOException localIOException4)
      {
        throw new MarshalException("error marshalling return", localIOException4);
      }
    case 2:
      try
      {
        ObjectInput localObjectInput2 = paramRemoteCall.getInputStream();
        localObject1 = (TriggerListener)localObjectInput2.readObject();
      }
      catch (IOException localIOException46)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException46);
      }
      catch (ClassNotFoundException localClassNotFoundException2)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException2);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      localQuartzScheduler.addGlobalTriggerListener((TriggerListener)localObject1);
      try
      {
        paramRemoteCall.getResultStream(true);
      }
      catch (IOException localIOException5)
      {
        throw new MarshalException("error marshalling return", localIOException5);
      }
    case 3:
      JobDetail localJobDetail;
      boolean bool9;
      try
      {
        ObjectInput localObjectInput26 = paramRemoteCall.getInputStream();
        localObject1 = (SchedulingContext)localObjectInput26.readObject();
        localJobDetail = (JobDetail)localObjectInput26.readObject();
        bool9 = localObjectInput26.readBoolean();
      }
      catch (IOException localIOException94)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException94);
      }
      catch (ClassNotFoundException localClassNotFoundException28)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException28);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      localQuartzScheduler.addJob((SchedulingContext)localObject1, localJobDetail, bool9);
      try
      {
        paramRemoteCall.getResultStream(true);
      }
      catch (IOException localIOException47)
      {
        throw new MarshalException("error marshalling return", localIOException47);
      }
    case 4:
      try
      {
        ObjectInput localObjectInput3 = paramRemoteCall.getInputStream();
        localObject1 = (JobListener)localObjectInput3.readObject();
      }
      catch (IOException localIOException48)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException48);
      }
      catch (ClassNotFoundException localClassNotFoundException3)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException3);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      localQuartzScheduler.addJobListener((JobListener)localObject1);
      try
      {
        paramRemoteCall.getResultStream(true);
      }
      catch (IOException localIOException6)
      {
        throw new MarshalException("error marshalling return", localIOException6);
      }
    case 5:
      try
      {
        ObjectInput localObjectInput4 = paramRemoteCall.getInputStream();
        localObject1 = (SchedulerListener)localObjectInput4.readObject();
      }
      catch (IOException localIOException49)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException49);
      }
      catch (ClassNotFoundException localClassNotFoundException4)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException4);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      localQuartzScheduler.addSchedulerListener((SchedulerListener)localObject1);
      try
      {
        paramRemoteCall.getResultStream(true);
      }
      catch (IOException localIOException7)
      {
        throw new MarshalException("error marshalling return", localIOException7);
      }
    case 6:
      try
      {
        ObjectInput localObjectInput5 = paramRemoteCall.getInputStream();
        localObject1 = (TriggerListener)localObjectInput5.readObject();
      }
      catch (IOException localIOException50)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException50);
      }
      catch (ClassNotFoundException localClassNotFoundException5)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException5);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      localQuartzScheduler.addTriggerListener((TriggerListener)localObject1);
      try
      {
        paramRemoteCall.getResultStream(true);
      }
      catch (IOException localIOException8)
      {
        throw new MarshalException("error marshalling return", localIOException8);
      }
    case 7:
      try
      {
        ObjectInput localObjectInput17 = paramRemoteCall.getInputStream();
        localObject1 = (SchedulingContext)localObjectInput17.readObject();
        str2 = (String)localObjectInput17.readObject();
      }
      catch (IOException localIOException74)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException74);
      }
      catch (ClassNotFoundException localClassNotFoundException19)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException19);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      boolean bool10 = localQuartzScheduler.deleteCalendar((SchedulingContext)localObject1, str2);
      try
      {
        ObjectOutput localObjectOutput22 = paramRemoteCall.getResultStream(true);
        localObjectOutput22.writeBoolean(bool10);
      }
      catch (IOException localIOException51)
      {
        throw new MarshalException("error marshalling return", localIOException51);
      }
    case 8:
      String str8;
      try
      {
        ObjectInput localObjectInput27 = paramRemoteCall.getInputStream();
        localObject1 = (SchedulingContext)localObjectInput27.readObject();
        str2 = (String)localObjectInput27.readObject();
        str8 = (String)localObjectInput27.readObject();
      }
      catch (IOException localIOException95)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException95);
      }
      catch (ClassNotFoundException localClassNotFoundException29)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException29);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      boolean bool12 = localQuartzScheduler.deleteJob((SchedulingContext)localObject1, str2, str8);
      try
      {
        ObjectOutput localObjectOutput27 = paramRemoteCall.getResultStream(true);
        localObjectOutput27.writeBoolean(bool12);
      }
      catch (IOException localIOException75)
      {
        throw new MarshalException("error marshalling return", localIOException75);
      }
    case 9:
      try
      {
        ObjectInput localObjectInput18 = paramRemoteCall.getInputStream();
        localObject1 = (SchedulingContext)localObjectInput18.readObject();
        str2 = (String)localObjectInput18.readObject();
      }
      catch (IOException localIOException76)
      {
        throw new UnmarshalException("error unmarshalling arguments", localIOException76);
      }
      catch (ClassNotFoundException localClassNotFoundException20)
      {
        throw new UnmarshalException("error unmarshalling arguments", localClassNotFoundException20);
      }
      finally
      {
        paramRemoteCall.releaseInputStream();
      }
      Calendar localCalendar2 = localQuartzScheduler.getCalendar((SchedulingContext)localObject1, str2);
      try
      {
        ObjectOutput localObjectOutput23 = paramRemoteCall.getResultStream(true);
        localObjectOutput23.writeObject(localCalendar2);
      }
View Full Code Here

      catch (IOException localIOException1)
      {
        throw new MarshalException("error marshalling arguments", localIOException1);
      }
      this.ref.invoke((RemoteCall)localObject1);
      Calendar localCalendar;
      try
      {
        ObjectInput localObjectInput = ((RemoteCall)localObject1).getInputStream();
        localCalendar = (Calendar)localObjectInput.readObject();
      }
View Full Code Here

/*  755 */     for (int i = 0; (i < misfiredTriggers.length) && (i < getMaxMisfiresToHandleAtATime()); i++) {
/*  756 */       Trigger trig = getDelegate().selectTrigger(conn, misfiredTriggers[i].getName(), misfiredTriggers[i].getGroup());
/*      */
/*  760 */       if (trig == null)
/*      */         continue;
/*  762 */       Calendar cal = null;
/*  763 */       if (trig.getCalendarName() != null) {
/*  764 */         cal = retrieveCalendar(conn, null, trig.getCalendarName());
/*      */       }
/*  766 */       String[] listeners = getDelegate().selectTriggerListeners(conn, trig.getName(), trig.getGroup());
/*      */
View Full Code Here

/*  801 */       if (getMisfireThreshold() > 0L) {
/*  802 */         misfireTime -= getMisfireThreshold();
/*      */       }
/*  804 */       if (trig.getNextFireTime().getTime() > misfireTime) return false;
/*      */
/*  806 */       Calendar cal = null;
/*  807 */       if (trig.getCalendarName() != null) {
/*  808 */         cal = retrieveCalendar(conn, ctxt, trig.getCalendarName());
/*      */       }
/*  810 */       this.signaler.notifyTriggerListenersMisfired(trig);
/*      */
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.