Class SchedulerJob

    • Method Detail

      • doTick

        public void doTick​(boolean forced)
        Call this method to fire ticks to the scheduler. If the time is come the scheduler will execute the operation and set 'done' to true.
        Parameters:
        forced -
      • doCaclulateNextExecution

        protected abstract void doCaclulateNextExecution()
        Calculate the next executionTime and store it into nextExecutionTime
      • isBusy

        public boolean isBusy()
        Specified by:
        isBusy in interface Operation
      • getOwner

        public Object getOwner()
      • isExecutionTimeReached

        protected boolean isExecutionTimeReached()
        By default the function will compare the nextExecutionTime with the current time. If the time is come it will return true. If nextExecutionTime is 0 or less it will return false in every case.
        Returns:
      • isDone

        public boolean isDone()
      • setDone

        protected void setDone​(boolean done)
      • setTask

        protected void setTask​(ITimerTask task)
      • getNextExecutionTime

        public long getNextExecutionTime()
      • doError

        protected void doError​(Throwable t)
      • doSchedule

        protected void doSchedule​(Scheduler scheduler)
      • doReschedule

        protected void doReschedule​(Scheduler scheduler,
                                    long time)
      • getLastExecutionStart

        public long getLastExecutionStart()
      • getLastExecutionStop

        public long getLastExecutionStop()
      • getScheduledTime

        public long getScheduledTime()
      • setScheduledTime

        protected void setScheduledTime​(long scheduledTime)
      • getTimeoutInMinutes

        public long getTimeoutInMinutes()
      • setTimeoutInMinutes

        public void setTimeoutInMinutes​(long timeoutInMinutes)
      • doTimeoutReached

        public void doTimeoutReached()
        If you have defined a timeout, the event will be called every minute. Be carefully with the execution time of this event, it can hem the hole scheduler.
      • getThread

        public Thread getThread()
      • setNextExecutionTime

        public void setNextExecutionTime​(long nextExecutionTime)
      • getInfo

        public String getInfo()
      • setInfo

        public void setInfo​(String info)
      • getLogTrailConfig

        public String getLogTrailConfig()
      • setLogTrailConfig

        public void setLogTrailConfig​(String logTrailConfig)