| org.ofbiz.service.rmi.RemoteDispatcher
All known Subclasses: org.ofbiz.service.rmi.RemoteDispatcherImpl,
RemoteDispatcher | public interface RemoteDispatcher extends Remote(Code) | | Generic Services Remote Dispatcher
author: Andy Zeneski version: $Revision: 1.2 $ since: 3.0 |
Method Summary | |
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 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. |
runAsync | public void runAsync(String serviceName, Map context, GenericRequester requester, boolean persist, int transactionTimeout, boolean requireNewTransaction) throws GenericServiceException, RemoteException(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: GenericServiceException - |
runAsync | public void runAsync(String serviceName, Map context, GenericRequester requester, boolean persist) throws GenericServiceException, RemoteException(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. throws: GenericServiceException - throws: RemoteException - |
runAsync | public void runAsync(String serviceName, Map context, GenericRequester requester) throws GenericServiceException, RemoteException(Code) | | Run the service asynchronously, passing an instance of GenericRequester that will receive the result.
This method WILL persist the job.
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. throws: GenericServiceException - throws: RemoteException - |
runSync | public Map runSync(String serviceName, Map context, int transactionTimeout, boolean requireNewTransaction) throws GenericServiceException, RemoteException(Code) | | 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. Map of name, value pairs composing the result. throws: GenericServiceException - |
runSyncIgnore | public void runSyncIgnore(String serviceName, Map context, int transactionTimeout, boolean requireNewTransaction) throws GenericServiceException, RemoteException(Code) | | Run the service synchronously with a specified timeout and IGNORE 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. throws: GenericServiceException - |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) throws GenericServiceException, RemoteException(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 - throws: RemoteException - |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count) throws GenericServiceException, RemoteException(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 - throws: RemoteException - |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, long endTime) throws GenericServiceException, RemoteException(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 - throws: RemoteException - |
|
|