|
|||||||||
| 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
public class GenericServiceJob
Generic Service Job - A generic async-service Job.
| Field Summary | |
|---|---|
protected DispatchContext |
dctx
|
static java.lang.String |
module
|
protected GenericRequester |
requester
|
| Fields inherited from class org.ofbiz.service.job.AbstractJob |
|---|
runtime, sequence |
| Constructor Summary | |
|---|---|
|
GenericServiceJob(DispatchContext dctx,
java.lang.String jobId,
java.lang.String jobName,
java.lang.String service,
java.util.Map<java.lang.String,java.lang.Object> context,
GenericRequester req)
|
protected |
GenericServiceJob(java.lang.String jobId,
java.lang.String jobName)
|
| Method Summary | |
|---|---|
void |
exec()
Invokes the service. |
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. |
| Methods inherited from class org.ofbiz.service.job.AbstractJob |
|---|
getJobId, getJobName, getRuntime, isValid, queue |
| 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 transient GenericRequester requester
protected transient DispatchContext dctx
| Constructor Detail |
|---|
public GenericServiceJob(DispatchContext dctx,
java.lang.String jobId,
java.lang.String jobName,
java.lang.String service,
java.util.Map<java.lang.String,java.lang.Object> context,
GenericRequester req)
protected GenericServiceJob(java.lang.String jobId,
java.lang.String jobName)
| Method Detail |
|---|
public void exec()
throws InvalidJobException
exec in interface Jobexec in class AbstractJobInvalidJobException
protected void init()
throws InvalidJobException
InvalidJobException
protected void finish()
throws InvalidJobException
InvalidJobException
protected void failed(java.lang.Throwable t)
throws InvalidJobException
t - Throwable
InvalidJobException
protected java.util.Map<java.lang.String,java.lang.Object> getContext()
throws InvalidJobException
InvalidJobException
protected java.lang.String getServiceName()
throws InvalidJobException
InvalidJobException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||