org.ofbiz.core.service.job
Class AbstractJob

java.lang.Object
  |
  +--org.ofbiz.core.service.job.AbstractJob
All Implemented Interfaces:
Job, java.io.Serializable
Direct Known Subclasses:
GenericServiceJob, StartActivityJob

public abstract class AbstractJob
extends java.lang.Object
implements Job

Abstract Service Job - Invokes a service

Since:
2.0
Version:
$Revision: 1.5 $
Author:
Andy Zeneski
See Also:
Serialized Form

Field Summary
static java.lang.String module
           
protected  long runtime
           
protected  long sequence
           
 
Constructor Summary
protected AbstractJob(java.lang.String jobName)
           
 
Method Summary
abstract  void exec()
          Executes the Job.
 java.lang.String getJobName()
          Returns the name of this Job.
 long getRuntime()
          Returns the time to run in milliseconds.
 boolean isValid()
          Returns true if this job is still valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

runtime

protected long runtime

sequence

protected long sequence
Constructor Detail

AbstractJob

protected AbstractJob(java.lang.String jobName)
Method Detail

getRuntime

public long getRuntime()
Returns the time to run in milliseconds.

Specified by:
getRuntime in interface Job

isValid

public boolean isValid()
Returns true if this job is still valid.

Specified by:
isValid in interface Job

getJobName

public java.lang.String getJobName()
Returns the name of this Job.

Specified by:
getJobName in interface Job

exec

public abstract void exec()
Executes the Job.

Specified by:
exec in interface Job