|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalDispatcher
Generic Services Local Dispatcher
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 |
void |
disableEcas()
Disables running of Service Engine Condition Actions (SECAs). |
void |
enableEcas()
Reenables running of Service Engine Condition Actions (SECAs). |
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 |
boolean |
isEcasDisabled()
Returns whether Service Engine Condition Actions (SECAs) are disabled or not. |
void |
registerCallback(java.lang.String serviceName,
GenericServiceCallback cb)
Register a callback listener on a specific service. |
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. |
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. |
Method Detail |
---|
void disableEcas()
GenericServiceException
void enableEcas()
GenericServiceException
boolean isEcasDisabled()
GenericServiceException
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 GenericServiceException
serviceName
- Name of the service to run.context
- Map of name, value pairs composing the context.
ServiceAuthException
ServiceValidationException
GenericServiceException
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
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
GenericServiceException
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
void runSyncIgnore(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws GenericServiceException
serviceName
- Name of the service to run.context
- Map of name, value pairs composing the context.
ServiceAuthException
ServiceValidationException
GenericServiceException
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
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
GenericServiceException
void runSyncIgnore(java.lang.String serviceName, int transactionTimeout, boolean requireNewTransaction, java.lang.Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
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
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
GenericServiceException
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
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
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
GenericServiceException
void runAsync(java.lang.String serviceName, GenericRequester requester, boolean persist, java.lang.Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
void runAsync(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, GenericRequester requester) throws ServiceAuthException, ServiceValidationException, GenericServiceException
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
GenericServiceException
void runAsync(java.lang.String serviceName, GenericRequester requester, java.lang.Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
void runAsync(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, boolean persist) throws ServiceAuthException, ServiceValidationException, GenericServiceException
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
GenericServiceException
void runAsync(java.lang.String serviceName, boolean persist, java.lang.Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
void runAsync(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws ServiceAuthException, ServiceValidationException, GenericServiceException
serviceName
- Name of the service to run.context
- Map of name, value pairs composing the context.
ServiceAuthException
ServiceValidationException
GenericServiceException
GenericResultWaiter runAsyncWait(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, boolean persist) throws ServiceAuthException, ServiceValidationException, GenericServiceException
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
GenericServiceException
GenericResultWaiter runAsyncWait(java.lang.String serviceName, boolean persist, java.lang.Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException
ServiceAuthException
ServiceValidationException
GenericServiceException
GenericResultWaiter runAsyncWait(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws ServiceAuthException, ServiceValidationException, GenericServiceException
serviceName
- Name of the service to run.context
- Map of name, value pairs composing the context.
ServiceAuthException
ServiceValidationException
GenericServiceException
void registerCallback(java.lang.String serviceName, GenericServiceCallback cb)
serviceName
- Name of the service to link callback to.cb
- The callback implementation.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
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
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
GenericServiceException
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
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
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
GenericServiceException
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
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
void schedule(java.lang.String serviceName, long startTime, int frequency, int interval, int count, long endTime, java.lang.Object... context) throws GenericServiceException
GenericServiceException
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
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
void schedule(java.lang.String serviceName, long startTime, int frequency, int interval, int count, java.lang.Object... context) throws GenericServiceException
GenericServiceException
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
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
void schedule(java.lang.String serviceName, long startTime, int frequency, int interval, long endTime, java.lang.Object... context) throws GenericServiceException
GenericServiceException
void schedule(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, long startTime) throws GenericServiceException
serviceName
- Name of the service to invoke.context
- The name/value pairs composing the context.startTime
- The time to run this service.
GenericServiceException
void schedule(java.lang.String serviceName, long startTime, java.lang.Object... context) throws GenericServiceException
GenericServiceException
void addRollbackService(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, boolean persist) throws GenericServiceException
serviceName
- context
- persist
-
GenericServiceException
void addRollbackService(java.lang.String serviceName, boolean persist, java.lang.Object... context) throws GenericServiceException
GenericServiceException
void addCommitService(java.lang.String serviceName, java.util.Map<java.lang.String,? extends java.lang.Object> context, boolean persist) throws GenericServiceException
serviceName
- context
- persist
-
GenericServiceException
void addCommitService(java.lang.String serviceName, boolean persist, java.lang.Object... context) throws GenericServiceException
GenericServiceException
JobManager getJobManager()
JmsListenerFactory getJMSListeneFactory()
GenericDelegator getDelegator()
Security getSecurity()
java.lang.String getName()
DispatchContext getDispatchContext()
void deregister()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |