| org.ofbiz.service.LocalDispatcher
All known Subclasses: org.ofbiz.service.GenericAbstractDispatcher,
LocalDispatcher | public interface LocalDispatcher (Code) | | Generic Services Local Dispatcher
author: Andy Zeneski version: $Revision: 1.5 $ since: 2.0 |
Method Summary | |
public void | deregister() | public GenericDelegator | getDelegator() | public DispatchContext | getDispatchContext() | public JmsListenerFactory | getJMSListeneFactory() Gets the JmsListenerFactory which holds the message listeners. | public JobManager | getJobManager() | public String | getName() | public Security | getSecurity() | public void | runAsync(String serviceName, Map context, GenericRequester requester, boolean persist, int transactionTimeout, boolean requireNewTransaction) Run the service asynchronously, passing an instance of GenericRequester that will receive the result. | public void | runAsync(String serviceName, Map context, GenericRequester requester, boolean persist) Run the service asynchronously, passing an instance of GenericRequester that will receive the result. | public void | runAsync(String serviceName, Map context, GenericRequester requester) Run the service asynchronously, passing an instance of GenericRequester that will receive the result. | public void | runAsync(String serviceName, Map context, boolean persist) Run the service asynchronously and IGNORE the result. | public void | runAsync(String serviceName, Map context) Run the service asynchronously and IGNORE the result. | public GenericResultWaiter | runAsyncWait(String serviceName, Map context, boolean persist) Run the service asynchronously.
Parameters: serviceName - Name of the service to run. Parameters: context - Map of name, value pairs composing the context. Parameters: persist - True for store/run; False for run. | public GenericResultWaiter | runAsyncWait(String serviceName, Map context) Run the service asynchronously. | public Map | runSync(String serviceName, Map context) Run the service synchronously and return the result.
Parameters: serviceName - Name of the service to run. Parameters: context - Map of name, value pairs composing the context. | public Map | runSync(String serviceName, Map context, int transactionTimeout, boolean requireNewTransaction) Run the service synchronously with a specified timeout and return the result.
Parameters: serviceName - Name of the service to run. Parameters: context - Map of name, value pairs composing the context. Parameters: transactionTimeout - the overriding timeout for the transaction (if we started it). Parameters: requireNewTransaction - if true we will suspend and create a new transaction so we are sure to start. | public void | runSyncIgnore(String serviceName, Map context) Run the service synchronously and IGNORE the result. | public void | runSyncIgnore(String serviceName, Map context, int transactionTimeout, boolean requireNewTransaction) Run the service synchronously with a specified timeout and IGNORE the result. | public void | schedule(String poolName, String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) Schedule a service to run asynchronously at a specific start time. | public void | schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) Schedule a service to run asynchronously at a specific start time. | public void | schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count) Schedule a service to run asynchronously at a specific start time. | public void | schedule(String serviceName, Map context, long startTime, int frequency, int interval, long endTime) Schedule a service to run asynchronously at a specific start time. | public void | schedule(String serviceName, Map context, long startTime) Schedule a service to run asynchronously at a specific start time. |
deregister | public void deregister()(Code) | | De-Registers this LocalDispatcher with the ServiceDispatcher
|
getDelegator | public GenericDelegator getDelegator()(Code) | | Gets the GenericEntityDelegator associated with this dispatcher
GenericEntityDelegator associated with this dispatcher |
getDispatchContext | public DispatchContext getDispatchContext()(Code) | | Returns the DispatchContext created by this dispatcher
DispatchContext created by this dispatcher |
getJMSListeneFactory | public JmsListenerFactory getJMSListeneFactory()(Code) | | Gets the JmsListenerFactory which holds the message listeners.
JmsListenerFactory |
getJobManager | public JobManager getJobManager()(Code) | | Gets the JobManager associated with this dispatcher
JobManager that is associated with this dispatcher |
getName | public String getName()(Code) | | Returns the Name of this local dispatcher
String representing the name of this local dispatcher |
getSecurity | public Security getSecurity()(Code) | | Gets the Security object associated with this dispatcher
Security object associated with this dispatcher |
runAsync | public void runAsync(String serviceName, Map context, GenericRequester requester, boolean persist, int transactionTimeout, boolean requireNewTransaction) throws ServiceAuthException, ServiceValidationException, GenericServiceException(Code) | | Run the service asynchronously, passing an instance of GenericRequester that will receive the result.
Parameters: serviceName - Name of the service to run. Parameters: context - Map of name, value pairs composing the context. Parameters: requester - Object implementing GenericRequester interface which will receive the result. Parameters: persist - True for store/run; False for run. Parameters: transactionTimeout - the overriding timeout for the transaction (if we started it). Parameters: requireNewTransaction - if true we will suspend and create a new transaction so we are sure to start. throws: ServiceAuthException - throws: ServiceValidationException - throws: GenericServiceException - |
schedule | public void schedule(String poolName, String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) throws GenericServiceException(Code) | | Schedule a service to run asynchronously at a specific start time.
Parameters: poolName - Name of the service pool to send to. Parameters: serviceName - Name of the service to invoke. Parameters: context - The name/value pairs composing the context. Parameters: startTime - The time to run this service. Parameters: frequency - The frequency of the recurrence (RecurrenceRule.DAILY, etc). Parameters: interval - The interval of the frequency recurrence. Parameters: count - The number of times to repeat. Parameters: endTime - The time in milliseconds the service should expire throws: ServiceAuthException - throws: ServiceValidationException - throws: GenericServiceException - |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) throws GenericServiceException(Code) | | Schedule a service to run asynchronously at a specific start time.
Parameters: serviceName - Name of the service to invoke. Parameters: context - The name/value pairs composing the context. Parameters: startTime - The time to run this service. Parameters: frequency - The frequency of the recurrence (RecurrenceRule.DAILY, etc). Parameters: interval - The interval of the frequency recurrence. Parameters: count - The number of times to repeat. Parameters: endTime - The time in milliseconds the service should expire throws: GenericServiceException - |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count) throws GenericServiceException(Code) | | Schedule a service to run asynchronously at a specific start time.
Parameters: serviceName - Name of the service to invoke. Parameters: context - The name/value pairs composing the context. Parameters: startTime - The time to run this service. Parameters: frequency - The frequency of the recurrence (RecurrenceRule.DAILY, etc). Parameters: interval - The interval of the frequency recurrence. Parameters: count - The number of times to repeat. throws: GenericServiceException - |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, long endTime) throws GenericServiceException(Code) | | Schedule a service to run asynchronously at a specific start time.
Parameters: serviceName - Name of the service to invoke. Parameters: context - The name/value pairs composing the context. Parameters: startTime - The time to run this service. Parameters: frequency - The frequency of the recurrence (RecurrenceRule.DAILY, etc). Parameters: interval - The interval of the frequency recurrence. Parameters: endTime - The time in milliseconds the service should expire throws: GenericServiceException - |
schedule | public void schedule(String serviceName, Map context, long startTime) throws GenericServiceException(Code) | | Schedule a service to run asynchronously at a specific start time.
Parameters: serviceName - Name of the service to invoke. Parameters: context - The name/value pairs composing the context. Parameters: startTime - The time to run this service. throws: GenericServiceException - |
|
|