Class CacheReflectionTmLookup

  • All Implemented Interfaces:
    CacheTmLookup

    public class CacheReflectionTmLookup
    extends Object
    implements CacheTmLookup
    Implementation of CacheTmLookup interface that attempts to obtain JTA manager by calling static method on the class.
    • Constructor Detail

      • CacheReflectionTmLookup

        public CacheReflectionTmLookup()
        Creates uninitialized reflection TM lookup.
      • CacheReflectionTmLookup

        public CacheReflectionTmLookup​(String cls,
                                       String mtd)
        Creates generic TM lookup with given class and method name.
        Parameters:
        cls - Class name.
        mtd - Method name on that the class.
    • Method Detail

      • getClassName

        public String getClassName()
        Gets class name to use.
        Returns:
        Class name to use.
      • setClassName

        public void setClassName​(String cls)
        Sets class name to use.
        Parameters:
        cls - Class name to use.
      • getMethodName

        public String getMethodName()
        Gets method name.
        Returns:
        Method name to use.
      • setMethodName

        public void setMethodName​(String mtd)
        Sets method name.
        Parameters:
        mtd - Method name to use.
      • getTm

        public javax.transaction.TransactionManager getTm()
                                                   throws IgniteException
        Gets Transaction Manager (TM).
        Specified by:
        getTm in interface CacheTmLookup
        Returns:
        TM or null if TM cannot be looked up.
        Throws:
        IgniteException - In case of error.