|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.service.GenericAbstractDispatcher
org.ofbiz.service.GenericDispatcher
public class GenericDispatcher
Generic Services Local Dispatcher
| Field Summary | |
|---|---|
protected static java.util.Map<java.lang.String,LocalDispatcher> |
dispatcherCache
|
protected static boolean |
ecasDisabled
|
static java.lang.String |
module
|
| Fields inherited from class org.ofbiz.service.GenericAbstractDispatcher |
|---|
ctx, dispatcher, name |
| Constructor Summary | |
|---|---|
protected |
GenericDispatcher()
|
protected |
GenericDispatcher(java.lang.String name,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
java.lang.ClassLoader loader,
ServiceDispatcher serviceDispatcher)
|
| Method Summary | |
|---|---|
void |
disableEcas()
Disables running of Service Engine Condition Actions (SECAs). |
void |
enableEcas()
Reenables running of Service Engine Condition Actions (SECAs). |
static java.util.Set<java.lang.String> |
getAllDispatcherNames()
|
static LocalDispatcher |
getLocalDispatcher(java.lang.String dispatcherName,
GenericDelegator delegator)
|
static LocalDispatcher |
getLocalDispatcher(java.lang.String dispatcherName,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
java.lang.ClassLoader loader)
|
static LocalDispatcher |
getLocalDispatcher(java.lang.String dispatcherName,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
java.lang.ClassLoader loader,
ServiceDispatcher serviceDispatcher)
|
protected void |
init(java.lang.String name,
GenericDelegator delegator,
DispatchContext ctx)
|
boolean |
isEcasDisabled()
Returns whether Service Engine Condition Actions (SECAs) are disabled or not. |
static LocalDispatcher |
newInstance(java.lang.String name,
GenericDelegator delegator,
boolean enableJM,
boolean enableJMS,
boolean enableSvcs)
special method to obtain a new 'unique' reference with a variation on parameters |
static LocalDispatcher |
newInstance(java.lang.String name,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
boolean enableJM,
boolean enableJMS,
boolean enableSvcs)
|
void |
runAsync(java.lang.String serviceName,
boolean persist,
java.lang.Object... context)
|
void |
runAsync(java.lang.String serviceName,
GenericRequester requester,
boolean persist,
int transactionTimeout,
boolean requireNewTransaction,
java.lang.Object... context)
|
void |
runAsync(java.lang.String serviceName,
GenericRequester requester,
boolean persist,
java.lang.Object... context)
|
void |
runAsync(java.lang.String serviceName,
GenericRequester requester,
java.lang.Object... context)
|
void |
runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Run the service asynchronously and IGNORE the result. |
void |
runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
boolean persist)
Run the service asynchronously and IGNORE the result. |
void |
runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
GenericRequester requester)
Run the service asynchronously, passing an instance of GenericRequester that will receive the result. |
void |
runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
GenericRequester requester,
boolean persist)
Run the service asynchronously, passing an instance of GenericRequester that will receive the result. |
void |
runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
GenericRequester requester,
boolean persist,
int transactionTimeout,
boolean requireNewTransaction)
Run the service asynchronously, passing an instance of GenericRequester that will receive the result. |
GenericResultWaiter |
runAsyncWait(java.lang.String serviceName,
boolean persist,
java.lang.Object... context)
|
GenericResultWaiter |
runAsyncWait(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Run the service asynchronously. |
GenericResultWaiter |
runAsyncWait(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
boolean persist)
Run the service asynchronously. |
java.util.Map<java.lang.String,java.lang.Object> |
runSync(java.lang.String serviceName,
int transactionTimeout,
boolean requireNewTransaction,
java.lang.Object... context)
|
java.util.Map<java.lang.String,java.lang.Object> |
runSync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Run the service synchronously and return the result. |
java.util.Map<java.lang.String,java.lang.Object> |
runSync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
int transactionTimeout,
boolean requireNewTransaction)
Run the service synchronously with a specified timeout and return the result. |
void |
runSyncIgnore(java.lang.String serviceName,
int transactionTimeout,
boolean requireNewTransaction,
java.lang.Object... context)
|
void |
runSyncIgnore(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Run the service synchronously and IGNORE the result. |
void |
runSyncIgnore(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
int transactionTimeout,
boolean requireNewTransaction)
Run the service synchronously with a specified timeout and IGNORE the result. |
| Methods inherited from class org.ofbiz.service.GenericAbstractDispatcher |
|---|
addCommitService, addCommitService, addRollbackService, addRollbackService, deregister, getDelegator, getDispatchContext, getJMSListeneFactory, getJobManager, getName, getSecurity, registerCallback, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule |
| 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 static boolean ecasDisabled
protected static java.util.Map<java.lang.String,LocalDispatcher> dispatcherCache
| Constructor Detail |
|---|
protected GenericDispatcher()
protected GenericDispatcher(java.lang.String name,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
java.lang.ClassLoader loader,
ServiceDispatcher serviceDispatcher)
| Method Detail |
|---|
public static LocalDispatcher getLocalDispatcher(java.lang.String dispatcherName,
GenericDelegator delegator)
public static LocalDispatcher getLocalDispatcher(java.lang.String dispatcherName,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
java.lang.ClassLoader loader)
public static LocalDispatcher getLocalDispatcher(java.lang.String dispatcherName,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
java.lang.ClassLoader loader,
ServiceDispatcher serviceDispatcher)
public static LocalDispatcher newInstance(java.lang.String name,
GenericDelegator delegator,
boolean enableJM,
boolean enableJMS,
boolean enableSvcs)
throws GenericServiceException
GenericServiceException
public static LocalDispatcher newInstance(java.lang.String name,
GenericDelegator delegator,
java.util.Collection<java.net.URL> readerURLs,
boolean enableJM,
boolean enableJMS,
boolean enableSvcs)
throws GenericServiceException
GenericServiceExceptionpublic static java.util.Set<java.lang.String> getAllDispatcherNames()
protected void init(java.lang.String name,
GenericDelegator delegator,
DispatchContext ctx)
public void disableEcas()
LocalDispatcher
public void enableEcas()
LocalDispatcher
public boolean isEcasDisabled()
LocalDispatcher
public java.util.Map<java.lang.String,java.lang.Object> runSync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
throws ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.
ServiceValidationException
ServiceAuthException
GenericServiceExceptionLocalDispatcher.runSync(java.lang.String, java.util.Map)
public java.util.Map<java.lang.String,java.lang.Object> runSync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
int transactionTimeout,
boolean requireNewTransaction)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.transactionTimeout - the overriding timeout for the transaction (if we started it).requireNewTransaction - if true we will suspend and create a new transaction so we are sure to start.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runSync(java.lang.String, java.util.Map, int, boolean)
public java.util.Map<java.lang.String,java.lang.Object> runSync(java.lang.String serviceName,
int transactionTimeout,
boolean requireNewTransaction,
java.lang.Object... context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
public void runSyncIgnore(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
throws GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runSyncIgnore(java.lang.String, java.util.Map)
public void runSyncIgnore(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
int transactionTimeout,
boolean requireNewTransaction)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.transactionTimeout - the overriding timeout for the transaction (if we started it).requireNewTransaction - if true we will suspend and create a new transaction so we are sure to start.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runSyncIgnore(java.lang.String, java.util.Map)
public void runSyncIgnore(java.lang.String serviceName,
int transactionTimeout,
boolean requireNewTransaction,
java.lang.Object... context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
public void runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
GenericRequester requester,
boolean persist,
int transactionTimeout,
boolean requireNewTransaction)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.requester - Object implementing GenericRequester interface which will receive the result.persist - True for store/run; False for run.transactionTimeout - the overriding timeout for the transaction (if we started it).requireNewTransaction - if true we will suspend and create a new transaction so we are sure to start.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runAsync(java.lang.String, java.util.Map, org.ofbiz.service.GenericRequester, boolean, int, boolean)
public void runAsync(java.lang.String serviceName,
GenericRequester requester,
boolean persist,
int transactionTimeout,
boolean requireNewTransaction,
java.lang.Object... context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
public void runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
GenericRequester requester,
boolean persist)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.requester - Object implementing GenericRequester interface which will receive the result.persist - True for store/run; False for run.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runAsync(java.lang.String, java.util.Map, org.ofbiz.service.GenericRequester, boolean)
public void runAsync(java.lang.String serviceName,
GenericRequester requester,
boolean persist,
java.lang.Object... context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
public void runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
GenericRequester requester)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.requester - Object implementing GenericRequester interface which will receive the result.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runAsync(java.lang.String, java.util.Map, org.ofbiz.service.GenericRequester)
public void runAsync(java.lang.String serviceName,
GenericRequester requester,
java.lang.Object... context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
public void runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
boolean persist)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.persist - True for store/run; False for run.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runAsync(java.lang.String, java.util.Map, boolean)
public void runAsync(java.lang.String serviceName,
boolean persist,
java.lang.Object... context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
public void runAsync(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runAsync(java.lang.String, java.util.Map)
public GenericResultWaiter runAsyncWait(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context,
boolean persist)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.persist - True for store/run; False for run.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runAsyncWait(java.lang.String, java.util.Map, boolean)
public GenericResultWaiter runAsyncWait(java.lang.String serviceName,
boolean persist,
java.lang.Object... context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
public GenericResultWaiter runAsyncWait(java.lang.String serviceName,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
throws ServiceAuthException,
ServiceValidationException,
GenericServiceException
LocalDispatcher
serviceName - Name of the service to run.context - Map of name, value pairs composing the context.
ServiceAuthException
ServiceValidationException
GenericServiceExceptionLocalDispatcher.runAsyncWait(java.lang.String, java.util.Map)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||