GigaSpaces XAP 10.0.1 API

org.openspaces.core.transaction.manager
Class LookupJiniTransactionManager

java.lang.Object
  extended by org.springframework.transaction.support.AbstractPlatformTransactionManager
      extended by org.openspaces.core.transaction.manager.AbstractJiniTransactionManager
          extended by org.openspaces.core.transaction.manager.LookupJiniTransactionManager
All Implemented Interfaces:
Serializable, JiniPlatformTransactionManager, ServiceDetailsProvider, Aware, BeanNameAware, DisposableBean, InitializingBean, PlatformTransactionManager

public class LookupJiniTransactionManager
extends AbstractJiniTransactionManager
implements ServiceDetailsProvider

Springs transaction manager (PlatformTransactionManager using Jini in order to lookup the transaction manager based on a name (can have null value).

Uses JiniServiceFactoryBean in order to perform the lookup based on the specified setTransactionManagerName(String) and setLookupTimeout(Long). This usually works with Jini Mahalo transaction manager.

Author:
kimchy
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openspaces.core.transaction.manager.AbstractJiniTransactionManager
AbstractJiniTransactionManager.JiniTransactionObject, AbstractJiniTransactionManager.UnexpectedTransactionException
 
Nested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
AbstractPlatformTransactionManager.SuspendedResourcesHolder
 
Field Summary
 
Fields inherited from class org.openspaces.core.transaction.manager.AbstractJiniTransactionManager
beanName, SERVICE_TYPE
 
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
 
Constructor Summary
LookupJiniTransactionManager()
           
 
Method Summary
protected  TransactionManager doCreateTransactionManager()
          Returns a Jini TransactionManager that is lookup up using JiniServiceFactoryBean.
 ServiceDetails[] getServicesDetails()
          Retruns one or more service details that the service exposes.
 void setGroups(String[] groups)
          Sets the groups that will be used to look up the Jini transaction manager.
 void setLocators(String[] locators)
          Sets specific locators to find the jini transaction manger.
 void setLookupTimeout(Long lookupTimeout)
          Sets the lookupTimeout for the transaction manager lookup operation.
 void setTransactionManagerName(String transactionManagerName)
          Sets the transaction manager name to perform the lookup by.
protected  boolean suppportsCustomIsolationLevel()
           
 
Methods inherited from class org.openspaces.core.transaction.manager.AbstractJiniTransactionManager
afterPropertiesSet, applyIsolationLevel, convertJiniException, destroy, doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doJiniBegin, doResume, doRollback, doSetRollbackOnly, doSuspend, getBeanName, getTransactionalContext, getTransactionManager, isExistingTransaction, logMessage, setBeanName, setCommitTimeout, setLeaseRenewalConfig, setRollbackTimeout, setTransactionalContext, useSavepointForNestedTransaction
 
Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.transaction.PlatformTransactionManager
commit, getTransaction, rollback
 

Constructor Detail

LookupJiniTransactionManager

public LookupJiniTransactionManager()
Method Detail

setTransactionManagerName

public void setTransactionManagerName(String transactionManagerName)
Sets the transaction manager name to perform the lookup by. Note, this is not the transaction manager bean name, but an optional mahalo transaction manager name under which it was started. Usually this is set to null.


setLookupTimeout

public void setLookupTimeout(Long lookupTimeout)
Sets the lookupTimeout for the transaction manager lookup operation.


setGroups

public void setGroups(String[] groups)
Sets the groups that will be used to look up the Jini transaction manager. Default to ALL groups.


setLocators

public void setLocators(String[] locators)
Sets specific locators to find the jini transaction manger.


doCreateTransactionManager

protected TransactionManager doCreateTransactionManager()
                                                 throws Exception
Returns a Jini TransactionManager that is lookup up using JiniServiceFactoryBean. The lookup can use a specified setTransactionManagerName(String) and a setLookupTimeout(Long).

Specified by:
doCreateTransactionManager in class AbstractJiniTransactionManager
Throws:
Exception

getServicesDetails

public ServiceDetails[] getServicesDetails()
Description copied from interface: ServiceDetailsProvider
Retruns one or more service details that the service exposes.

Specified by:
getServicesDetails in interface ServiceDetailsProvider

suppportsCustomIsolationLevel

protected boolean suppportsCustomIsolationLevel()
Overrides:
suppportsCustomIsolationLevel in class AbstractJiniTransactionManager

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.