|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.service.job.AbstractJob
org.ofbiz.service.job.GenericServiceJob
org.ofbiz.service.job.PersistedServiceJob
public class PersistedServiceJob
Entity Service Job - Store => Schedule => Run
Field Summary | |
---|---|
static java.lang.String |
module
|
Fields inherited from class org.ofbiz.service.job.GenericServiceJob |
---|
dctx, requester |
Fields inherited from class org.ofbiz.service.job.AbstractJob |
---|
runtime, sequence |
Constructor Summary | |
---|---|
PersistedServiceJob(DispatchContext dctx,
GenericValue jobValue,
GenericRequester req)
Creates a new PersistedServiceJob |
Method Summary | |
---|---|
protected void |
failed(java.lang.Throwable t)
Method is called when the service fails. |
protected void |
finish()
Method is called after the service has finished. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getContext()
Gets the context for the service invocation. |
protected java.lang.String |
getServiceName()
Gets the name of the service as defined in the definition file. |
protected void |
init()
Method is called prior to running the service. |
void |
queue()
Flags this job as 'is-queued' |
Methods inherited from class org.ofbiz.service.job.GenericServiceJob |
---|
exec |
Methods inherited from class org.ofbiz.service.job.AbstractJob |
---|
getJobId, getJobName, getRuntime, isValid |
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
Constructor Detail |
---|
public PersistedServiceJob(DispatchContext dctx, GenericValue jobValue, GenericRequester req)
dctx
- jobValue
- req
- Method Detail |
---|
public void queue() throws InvalidJobException
AbstractJob
queue
in interface Job
queue
in class AbstractJob
InvalidJobException
protected void init() throws InvalidJobException
GenericServiceJob
init
in class GenericServiceJob
InvalidJobException
GenericServiceJob.init()
protected void finish() throws InvalidJobException
GenericServiceJob
finish
in class GenericServiceJob
InvalidJobException
GenericServiceJob.finish()
protected void failed(java.lang.Throwable t) throws InvalidJobException
GenericServiceJob
failed
in class GenericServiceJob
t
- Throwable
InvalidJobException
GenericServiceJob.failed(Throwable)
protected java.lang.String getServiceName() throws InvalidJobException
GenericServiceJob
getServiceName
in class GenericServiceJob
InvalidJobException
GenericServiceJob.getServiceName()
protected java.util.Map<java.lang.String,java.lang.Object> getContext() throws InvalidJobException
GenericServiceJob
getContext
in class GenericServiceJob
InvalidJobException
GenericServiceJob.getContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |