Class CacheReflectionTmLookup
- java.lang.Object
-
- org.apache.ignite.cache.jta.reflect.CacheReflectionTmLookup
-
- All Implemented Interfaces:
CacheTmLookup
public class CacheReflectionTmLookup extends Object implements CacheTmLookup
Implementation ofCacheTmLookupinterface that attempts to obtain JTA manager by calling static method on the class.
-
-
Constructor Summary
Constructors Constructor Description CacheReflectionTmLookup()Creates uninitialized reflection TM lookup.CacheReflectionTmLookup(String cls, String mtd)Creates generic TM lookup with given class and method name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()Gets class name to use.StringgetMethodName()Gets method name.javax.transaction.TransactionManagergetTm()Gets Transaction Manager (TM).voidsetClassName(String cls)Sets class name to use.voidsetMethodName(String mtd)Sets method name.
-
-
-
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 IgniteExceptionGets Transaction Manager (TM).- Specified by:
getTmin interfaceCacheTmLookup- Returns:
- TM or
nullif TM cannot be looked up. - Throws:
IgniteException- In case of error.
-
-