| java.lang.Object org.ofbiz.service.job.AbstractJob org.ofbiz.service.job.GenericServiceJob
All known Subclasses: org.ofbiz.service.job.PersistedServiceJob,
GenericServiceJob | public class GenericServiceJob extends AbstractJob (Code) | | Generic Service Job - A generic async-service Job.
author: Andy Zeneski * version: $Revision: 1.3 $ since: 2.0 |
Method Summary | |
public void | exec() Invokes the service. | protected void | failed(Throwable t) Method is called when the service fails. | protected void | finish() Method is called after the service has finished. | protected Map | getContext() Gets the context for the service invocation. | protected 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. |
GenericServiceJob | protected GenericServiceJob(String jobName)(Code) | | |
exec | public void exec()(Code) | | Invokes the service.
|
failed | protected void failed(Throwable t)(Code) | | Method is called when the service fails.
Parameters: t - Throwable |
finish | protected void finish()(Code) | | Method is called after the service has finished.
|
getContext | protected Map getContext()(Code) | | Gets the context for the service invocation.
Map of name value pairs making up the service context. |
getServiceName | protected String getServiceName()(Code) | | Gets the name of the service as defined in the definition file.
The name of the service to be invoked. |
init | protected void init()(Code) | | Method is called prior to running the service.
|
|
|