Package org.apache.ignite.cache.jta.jndi
Class CacheJndiTmLookup
- java.lang.Object
- 
- org.apache.ignite.cache.jta.jndi.CacheJndiTmLookup
 
- 
- All Implemented Interfaces:
- CacheTmLookup
 
 public class CacheJndiTmLookup extends Object implements CacheTmLookup Implementation ofCacheTmLookupinterface that is using list of JNDI names to find TM.
- 
- 
Constructor SummaryConstructors Constructor Description CacheJndiTmLookup()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getJndiNames()Gets a list of JNDI names.@Nullable javax.transaction.TransactionManagergetTm()Gets Transaction Manager (TM).voidsetJndiNames(List<String> jndiNames)Sets a list of JNDI names used by this TM.
 
- 
- 
- 
Method Detail- 
getJndiNamespublic List<String> getJndiNames() Gets a list of JNDI names.- Returns:
- List of JNDI names that is used to find TM.
 
 - 
setJndiNamespublic void setJndiNames(List<String> jndiNames) Sets a list of JNDI names used by this TM.- Parameters:
- jndiNames- List of JNDI names that is used to find TM.
 
 - 
getTm@Nullable public @Nullable javax.transaction.TransactionManager getTm() throws IgniteExceptionGets Transaction Manager (TM).- Specified by:
- getTmin interface- CacheTmLookup
- Returns:
- TM or nullif TM cannot be looked up.
- Throws:
- IgniteException- In case of error.
 
 
- 
 
-