unm.maui.misc
Class JobChecker

java.lang.Object
  extended byunm.maui.misc.JobChecker
All Implemented Interfaces:
java.util.EventListener, MauiListener, SchedListener, java.io.Serializable

public class JobChecker
extends java.lang.Object
implements SchedListener, java.io.Serializable

Purge cancelled and finished jobs.

See Also:
Serialized Form

Field Summary
protected  java.lang.String emailAddress
          address to send to.
protected  int interval
          Interval to check for deferred jobs.
static java.lang.String maxRestartProperty
           
protected  int maxRestarts
          Maximum number of restarts to attempt before giving up on job.
protected  java.lang.String prefix
          Properties prefix.
static java.lang.String restartIntervalProperty
           
static java.lang.String restartProperty
           
protected  boolean sendEmail
          Send email?
static java.lang.String sendEmailProperty
           
 
Constructor Summary
JobChecker()
          Construct
 
Method Summary
 void assignProperties(java.lang.String prefix, java.util.Properties props)
          Set properties.
 void event(SchedEvent evt)
          A Scheduler event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restartProperty

public static final transient java.lang.String restartProperty
See Also:
Constant Field Values

maxRestartProperty

public static final transient java.lang.String maxRestartProperty
See Also:
Constant Field Values

restartIntervalProperty

public static final transient java.lang.String restartIntervalProperty
See Also:
Constant Field Values

sendEmailProperty

public static final transient java.lang.String sendEmailProperty
See Also:
Constant Field Values

maxRestarts

protected transient int maxRestarts
Maximum number of restarts to attempt before giving up on job.


interval

protected transient int interval
Interval to check for deferred jobs.


sendEmail

protected transient boolean sendEmail
Send email?


emailAddress

protected transient java.lang.String emailAddress
address to send to.


prefix

protected java.lang.String prefix
Properties prefix.

Constructor Detail

JobChecker

public JobChecker()
Construct

Method Detail

assignProperties

public void assignProperties(java.lang.String prefix,
                             java.util.Properties props)
Set properties.

Specified by:
assignProperties in interface MauiListener
Parameters:
prefix - String properties prefix
props - Properties

event

public void event(SchedEvent evt)
Description copied from interface: SchedListener
A Scheduler event.

Specified by:
event in interface SchedListener
Parameters:
evt - SchedEvent
See Also:
SchedListener.event(unm.maui.sched.SchedEvent)