Class ServiceEngineTestServices


  • public class ServiceEngineTestServices
    extends java.lang.Object
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • ServiceEngineTestServices

        public ServiceEngineTestServices()
    • Method Detail

      • testServiceDeadLockRetry

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceDeadLockRetry​(DispatchContext dctx,
                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceDeadLockRetryThreadA

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceDeadLockRetryThreadA​(DispatchContext dctx,
                                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceDeadLockRetryThreadB

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceDeadLockRetryThreadB​(DispatchContext dctx,
                                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceLockWaitTimeoutRetry

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceLockWaitTimeoutRetry​(DispatchContext dctx,
                                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceLockWaitTimeoutRetryGrabber

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceLockWaitTimeoutRetryGrabber​(DispatchContext dctx,
                                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceLockWaitTimeoutRetryWaiter

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceLockWaitTimeoutRetryWaiter​(DispatchContext dctx,
                                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceLockWaitTimeoutRetryCantRecover

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceLockWaitTimeoutRetryCantRecover​(DispatchContext dctx,
                                                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        NOTE that this is a funny case where the auto-retry in the service engine for the call to testServiceLockWaitTimeoutRetryCantRecoverWaiter would NOT be able to recover because it would try again given the new transaction and all, but the lock for the waiting thread would still be there... so it will fail repeatedly. TODO: there's got to be some way to do this, but how?!? :( NOTE: maybe this will work: create a list that the service engine maintains of services it will run after the current service run is complete, and AFTER it has committed or rolled back its transaction; if a service finds it has a lock wait timeout, add itself to the list for its parent service (somehow...) and off we go!
        Parameters:
        dctx - the dispatch context
        context - the context
        Returns:
        returns the results of the service execution
      • testServiceLockWaitTimeoutRetryCantRecoverWaiter

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceLockWaitTimeoutRetryCantRecoverWaiter​(DispatchContext dctx,
                                                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceOwnTxSubServiceAfterSetRollbackOnlyInParentErrorCatchWrapper

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceOwnTxSubServiceAfterSetRollbackOnlyInParentErrorCatchWrapper​(DispatchContext dctx,
                                                                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceOwnTxSubServiceAfterSetRollbackOnlyInParent

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceOwnTxSubServiceAfterSetRollbackOnlyInParent​(DispatchContext dctx,
                                                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceOwnTxSubServiceAfterSetRollbackOnlyInParentSubService

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceOwnTxSubServiceAfterSetRollbackOnlyInParentSubService​(DispatchContext dctx,
                                                                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceEcaGlobalEventExec

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceEcaGlobalEventExec​(DispatchContext dctx,
                                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceEcaGlobalEventExecOnCommit

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceEcaGlobalEventExecOnCommit​(DispatchContext dctx,
                                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceEcaGlobalEventExecToRollback

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceEcaGlobalEventExecToRollback​(DispatchContext dctx,
                                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • testServiceEcaGlobalEventExecOnRollback

        public static java.util.Map<java.lang.String,​java.lang.Object> testServiceEcaGlobalEventExecOnRollback​(DispatchContext dctx,
                                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)