org.ofbiz.service.job
Interface Job

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractJob, GenericServiceJob, PersistedServiceJob

public interface Job
extends java.io.Serializable

Job Interface


Method Summary
 void exec()
          Executes the Job.
 java.lang.String getJobId()
          Returns the ID of this 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.
 void queue()
          Flags this job as 'is-queued'
 

Method Detail

exec

void exec()
          throws InvalidJobException
Executes the Job.

Throws:
InvalidJobException

getJobId

java.lang.String getJobId()
Returns the ID of this Job.


getJobName

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


getRuntime

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


isValid

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


queue

void queue()
           throws InvalidJobException
Flags this job as 'is-queued'

Throws:
InvalidJobException