|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.service.job.AbstractJob
public abstract class AbstractJob
Abstract Service Job - Invokes a service
| Field Summary | |
|---|---|
static java.lang.String |
module
|
protected long |
runtime
|
protected long |
sequence
|
| Constructor Summary | |
|---|---|
protected |
AbstractJob(java.lang.String jobId,
java.lang.String jobName)
|
| Method Summary | |
|---|---|
abstract 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' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String module
protected long runtime
protected long sequence
| Constructor Detail |
|---|
protected AbstractJob(java.lang.String jobId,
java.lang.String jobName)
| Method Detail |
|---|
public long getRuntime()
getRuntime in interface Jobpublic boolean isValid()
isValid in interface Jobpublic java.lang.String getJobId()
getJobId in interface Jobpublic java.lang.String getJobName()
getJobName in interface Job
public void queue()
throws InvalidJobException
queue in interface JobInvalidJobException
public abstract void exec()
throws InvalidJobException
exec in interface JobInvalidJobException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||