private static boolean canStopTrackingJob ( JobStatus job ) { return ( ! job . hasTimingDelayConstraint ( ) || job . timeDelayConstraintSatisfied . get ( ) ) && ( ! job . hasDeadlineConstraint ( ) || job . deadlineConstraintSatisfied . get ( ) ) ; }
Determines whether this controller can stop tracking the given job . The controller is no longer interested in a job once its time constraint is satisfied and the job s deadline is fulfilled - unlike other controllers a time constraint can t toggle back and forth .