|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.service.GenericAbstractDispatcher
public abstract class GenericAbstractDispatcher
Generic Services Local Dispatcher
Field Summary | |
---|---|
protected DispatchContext |
ctx
|
protected ServiceDispatcher |
dispatcher
|
static java.lang.String |
module
|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
GenericAbstractDispatcher()
|
Method Summary | |
---|---|
void |
addCommitService(java.lang.String serviceName,
boolean persist,
java.lang.Object... context)
|
void |
addCommitService(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
boolean persist)
Adds a commit service to the current TX using the ServiceXaWrapper |
void |
addRollbackService(java.lang.String serviceName,
boolean persist,
java.lang.Object... context)
|
void |
addRollbackService(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
boolean persist)
Adds a rollback service to the current TX using the ServiceXaWrapper |
void |
deregister()
De-Registers this LocalDispatcher with the ServiceDispatcher |
GenericDelegator |
getDelegator()
Gets the GenericEntityDelegator associated with this dispatcher |
DispatchContext |
getDispatchContext()
Returns the DispatchContext created by this dispatcher |
JmsListenerFactory |
getJMSListeneFactory()
Gets the JmsListenerFactory which holds the message listeners. |
JobManager |
getJobManager()
Gets the JobManager associated with this dispatcher |
java.lang.String |
getName()
Returns the Name of this local dispatcher |
Security |
getSecurity()
Gets the Security object associated with this dispatcher |
void |
registerCallback(java.lang.String serviceName,
GenericServiceCallback cb)
Register a callback listener on a specific service. |
void |
schedule(java.lang.String serviceName,
long startTime,
int frequency,
int interval,
int count,
long endTime,
java.lang.Object... context)
|
void |
schedule(java.lang.String serviceName,
long startTime,
int frequency,
int interval,
int count,
java.lang.Object... context)
|
void |
schedule(java.lang.String serviceName,
long startTime,
int frequency,
int interval,
long endTime,
java.lang.Object... context)
|
void |
schedule(java.lang.String serviceName,
long startTime,
java.lang.Object... context)
|
void |
schedule(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
long startTime)
Schedule a service to run asynchronously at a specific start time. |
void |
schedule(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
long startTime,
int frequency,
int interval,
int count)
Schedule a service to run asynchronously at a specific start time. |
void |
schedule(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
long startTime,
int frequency,
int interval,
int count,
long endTime)
Schedule a service to run asynchronously at a specific start time. |
void |
schedule(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
long startTime,
int frequency,
int interval,
long endTime)
Schedule a service to run asynchronously at a specific start time. |
void |
schedule(java.lang.String poolName,
java.lang.String serviceName,
long startTime,
int frequency,
int interval,
int count,
long endTime,
int maxRetry,
java.lang.Object... context)
|
void |
schedule(java.lang.String poolName,
java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
long startTime,
int frequency,
int interval,
int count,
long endTime,
int maxRetry)
Schedule a service to run asynchronously at a specific start time. |
void |
schedule(java.lang.String jobName,
java.lang.String poolName,
java.lang.String serviceName,
long startTime,
int frequency,
int interval,
int count,
long endTime,
int maxRetry,
java.lang.Object... context)
|
void |
schedule(java.lang.String jobName,
java.lang.String poolName,
java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
long startTime,
int frequency,
int interval,
int count,
long endTime,
int maxRetry)
Schedule a service to run asynchronously at a specific start time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ofbiz.service.LocalDispatcher |
---|
disableEcas, enableEcas, isEcasDisabled, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsyncWait, runAsyncWait, runAsyncWait, runSync, runSync, runSync, runSyncIgnore, runSyncIgnore, runSyncIgnore |
Field Detail |
---|
public static final java.lang.String module
protected DispatchContext ctx
protected ServiceDispatcher dispatcher
protected java.lang.String name
Constructor Detail |
---|
public GenericAbstractDispatcher()
Method Detail |
---|
public void schedule(java.lang.String poolName, java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, long startTime, int frequency, int interval, int count, long endTime, int maxRetry) throws GenericServiceException
LocalDispatcher
schedule
in interface LocalDispatcher
poolName
- Name of the service pool to send to.serviceName
- Name of the service to invoke.context
- The name/value pairs composing the context.startTime
- The time to run this service.frequency
- The frequency of the recurrence (RecurrenceRule.DAILY, etc).interval
- The interval of the frequency recurrence.count
- The number of times to repeat.endTime
- The time in milliseconds the service should expiremaxRetry
- The number of times we should retry on failure
ServiceAuthException
ServiceValidationException
GenericServiceException
LocalDispatcher.schedule(java.lang.String, java.lang.String, java.util.Map, long, int, int, int, long, int)
public void schedule(java.lang.String poolName, java.lang.String serviceName, long startTime, int frequency, int interval, int count, long endTime, int maxRetry, java.lang.Object... context) throws GenericServiceException
schedule
in interface LocalDispatcher
GenericServiceException
public void schedule(java.lang.String jobName, java.lang.String poolName, java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, long startTime, int frequency, int interval, int count, long endTime, int maxRetry) throws GenericServiceException
LocalDispatcher
schedule
in interface LocalDispatcher
jobName
- Name of the jobpoolName
- Name of the service pool to send to.serviceName
- Name of the service to invoke.context
- The name/value pairs composing the context.startTime
- The time to run this service.frequency
- The frequency of the recurrence (RecurrenceRule.DAILY, etc).interval
- The interval of the frequency recurrence.count
- The number of times to repeat.endTime
- The time in milliseconds the service should expiremaxRetry
- The number of times we should retry on failure
ServiceAuthException
ServiceValidationException
GenericServiceException
LocalDispatcher.schedule(java.lang.String, java.lang.String, java.lang.String, java.util.Map, long, int, int, int, long, int)
public void schedule(java.lang.String jobName, java.lang.String poolName, java.lang.String serviceName, long startTime, int frequency, int interval, int count, long endTime, int maxRetry, java.lang.Object... context) throws GenericServiceException
schedule
in interface LocalDispatcher
GenericServiceException
public void addRollbackService(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, boolean persist) throws GenericServiceException
LocalDispatcher
addRollbackService
in interface LocalDispatcher
GenericServiceException
org.ofbiz.service.LocalDispatcher#setRollbackService(java.lang.String, java.util.Map, boolean)
public void addRollbackService(java.lang.String serviceName, boolean persist, java.lang.Object... context) throws GenericServiceException
addRollbackService
in interface LocalDispatcher
GenericServiceException
public void addCommitService(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, boolean persist) throws GenericServiceException
LocalDispatcher
addCommitService
in interface LocalDispatcher
GenericServiceException
org.ofbiz.service.LocalDispatcher#setCommitService(java.lang.String, java.util.Map, boolean)
public void addCommitService(java.lang.String serviceName, boolean persist, java.lang.Object... context) throws GenericServiceException
addCommitService
in interface LocalDispatcher
GenericServiceException
public void schedule(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, long startTime, int frequency, int interval, int count, long endTime) throws GenericServiceException
LocalDispatcher
schedule
in interface LocalDispatcher
serviceName
- Name of the service to invoke.context
- The name/value pairs composing the context.startTime
- The time to run this service.frequency
- The frequency of the recurrence (RecurrenceRule.DAILY, etc).interval
- The interval of the frequency recurrence.count
- The number of times to repeat.endTime
- The time in milliseconds the service should expire
GenericServiceException
LocalDispatcher.schedule(java.lang.String, java.util.Map, long, int, int, int, long)
public void schedule(java.lang.String serviceName, long startTime, int frequency, int interval, int count, long endTime, java.lang.Object... context) throws GenericServiceException
schedule
in interface LocalDispatcher
GenericServiceException
public void schedule(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, long startTime, int frequency, int interval, int count) throws GenericServiceException
LocalDispatcher
schedule
in interface LocalDispatcher
serviceName
- Name of the service to invoke.context
- The name/value pairs composing the context.startTime
- The time to run this service.frequency
- The frequency of the recurrence (RecurrenceRule.DAILY, etc).interval
- The interval of the frequency recurrence.count
- The number of times to repeat.
GenericServiceException
LocalDispatcher.schedule(java.lang.String, java.util.Map, long, int, int, int)
public void schedule(java.lang.String serviceName, long startTime, int frequency, int interval, int count, java.lang.Object... context) throws GenericServiceException
schedule
in interface LocalDispatcher
GenericServiceException
public void schedule(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, long startTime, int frequency, int interval, long endTime) throws GenericServiceException
LocalDispatcher
schedule
in interface LocalDispatcher
serviceName
- Name of the service to invoke.context
- The name/value pairs composing the context.startTime
- The time to run this service.frequency
- The frequency of the recurrence (RecurrenceRule.DAILY, etc).interval
- The interval of the frequency recurrence.endTime
- The time in milliseconds the service should expire
GenericServiceException
LocalDispatcher.schedule(java.lang.String, java.util.Map, long, int, int, long)
public void schedule(java.lang.String serviceName, long startTime, int frequency, int interval, long endTime, java.lang.Object... context) throws GenericServiceException
schedule
in interface LocalDispatcher
GenericServiceException
public void schedule(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, long startTime) throws GenericServiceException
LocalDispatcher
schedule
in interface LocalDispatcher
serviceName
- Name of the service to invoke.context
- The name/value pairs composing the context.startTime
- The time to run this service.
GenericServiceException
LocalDispatcher.schedule(java.lang.String, java.util.Map, long)
public void schedule(java.lang.String serviceName, long startTime, java.lang.Object... context) throws GenericServiceException
schedule
in interface LocalDispatcher
GenericServiceException
public JobManager getJobManager()
LocalDispatcher
getJobManager
in interface LocalDispatcher
LocalDispatcher.getJobManager()
public JmsListenerFactory getJMSListeneFactory()
LocalDispatcher
getJMSListeneFactory
in interface LocalDispatcher
LocalDispatcher.getJMSListeneFactory()
public GenericDelegator getDelegator()
LocalDispatcher
getDelegator
in interface LocalDispatcher
LocalDispatcher.getDelegator()
public Security getSecurity()
LocalDispatcher
getSecurity
in interface LocalDispatcher
LocalDispatcher.getSecurity()
public java.lang.String getName()
LocalDispatcher
getName
in interface LocalDispatcher
LocalDispatcher.getName()
public DispatchContext getDispatchContext()
LocalDispatcher
getDispatchContext
in interface LocalDispatcher
LocalDispatcher.getDispatchContext()
public void deregister()
LocalDispatcher
deregister
in interface LocalDispatcher
LocalDispatcher.deregister()
public void registerCallback(java.lang.String serviceName, GenericServiceCallback cb)
LocalDispatcher
registerCallback
in interface LocalDispatcher
serviceName
- Name of the service to link callback to.cb
- The callback implementation.LocalDispatcher.registerCallback(String, GenericServiceCallback)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |