com.evolveum.midpoint.task.impl
Class ScheduleEvaluator

java.lang.Object
  extended by com.evolveum.midpoint.task.impl.ScheduleEvaluator

public class ScheduleEvaluator
extends java.lang.Object

Evaluates schedules.

Author:
Radovan Semancik

Constructor Summary
ScheduleEvaluator()
           
 
Method Summary
static long determineSleepTime(Task task)
           
static boolean shouldRun(ScheduleType schedule, long lastRunTime)
          Determines whether a task is about to run given a schedule, last run time and a current time.
static boolean shouldRun(TaskType taskType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleEvaluator

public ScheduleEvaluator()
Method Detail

shouldRun

public static boolean shouldRun(TaskType taskType)

shouldRun

public static boolean shouldRun(ScheduleType schedule,
                                long lastRunTime)
Determines whether a task is about to run given a schedule, last run time and a current time.

Parameters:
schedule -
lastRunTime -
Returns:

determineSleepTime

public static long determineSleepTime(Task task)


Copyright © 2011 evolveum. All Rights Reserved.