public void setService(R service) { if ( this.service != null ) { if ( log.isDebugEnabled() ) { log.debug( "Overriding existing service binding [" + serviceRole.getName() + "]" ); } } this.service = service; } }
public TransactionImpl( TransactionCoordinator transactionCoordinator, ExceptionConverter exceptionConverter, AbstractSharedSessionContract session) { this.transactionCoordinator = transactionCoordinator; this.exceptionConverter = exceptionConverter; this.jpaCompliance = session.getFactory().getSessionFactoryOptions().getJpaCompliance(); this.session = session; if ( session.isOpen() && transactionCoordinator.isActive() ) { this.transactionDriverControl = transactionCoordinator.getTransactionDriverControl(); } else { LOG.debug( "TransactionImpl created on closed Session/EntityManager" ); } if ( LOG.isDebugEnabled() ) { LOG.debugf( "On TransactionImpl creation, JpaCompliance#isJpaTransactionComplianceEnabled == %s", jpaCompliance.isJpaTransactionComplianceEnabled() ); } }
public TransactionRecoveryModule () { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("TransactionRecoveryModule created"); } if (_recoveryStore == null) { _recoveryStore = StoreManager.getRecoveryStore(); } }
private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean AtomicActions = false ; // uids per transaction type InputObjectState aa_uids = new InputObjectState() ; try { if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("AtomicActionRecoveryModule first pass"); } AtomicActions = _recoveryStore.allObjUids( _transactionType, aa_uids ); } catch ( ObjectStoreException ex ) { tsLogger.i18NLogger.warn_recovery_AtomicActionRecoveryModule_1(ex); } if ( AtomicActions ) { _transactionUidVector = processTransactions( aa_uids ) ; } }
InputObjectState uids = new InputObjectState(); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("TransactionRecoveryModule: scanning for "+_transactionType); anyTransactions = _recoveryStore.allObjUids(_transactionType, uids); theUid = UidHelper.unpackFrom(uids); if (theUid.equals(Uid.nullUid())) Uid newUid = new Uid (theUid); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("found transaction "+newUid);
if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("RecoveredTransaction "+get_uid()+" created"); _originalProcessUid = new Uid(Uid.nullUid()); if ((StoreManager.getRecoveryStore().currentState(actionUid, effectiveTypeName) != StateStatus.OS_UNKNOWN))
public CachedRecoveredTransaction ( Uid actionUid, String theType ) { _theTransactionUid = new Uid (actionUid); _theTransactionType = theType; if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("CachedRecoveredTransaction created ["+_theTransactionUid+", "+_theTransactionType+"]"); } }
private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean AtomicActions = false ; // uids per transaction type InputObjectState aa_uids = new InputObjectState() ; try { if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("AtomicActionRecoveryModule first pass"); } AtomicActions = _recoveryStore.allObjUids( _transactionType, aa_uids ); } catch ( ObjectStoreException ex ) { tsLogger.i18NLogger.warn_recovery_AtomicActionRecoveryModule_1(ex); } if ( AtomicActions ) { _transactionUidVector = processTransactions( aa_uids ) ; } }
public AtomicActionRecoveryModule() { if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("AtomicActionRecoveryModule created"); } if (_recoveryStore == null) { _recoveryStore = StoreManager.getRecoveryStore(); } _transactionStatusConnectionMgr = new TransactionStatusConnectionManager() ; }
private static void logAddOnShutdown() { if (logger.isDebugEnabled()) { logger.debug("Ordered executor has been gently shutdown at", new Exception("debug")); } }
if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("ExpiredContactScanner - scanning to remove items from before "+_timeFormat.format(oldestSurviving)); InputObjectState uids = new InputObjectState(); if (_recoveryStore.allObjUids(_itemTypeName, uids)) theUid = UidHelper.unpackFrom(uids); if (theUid.equals(Uid.nullUid())) endOfUids = true; else Uid newUid = new Uid(theUid);
protected Object doBatchLoad( Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions) { if ( log.isDebugEnabled() ) { log.debugf( "Batch loading entity: %s", MessageHelper.infoString( persister, ids, session.getFactory() ) ); } QueryParameters qp = buildQueryParameters( id, ids, optionalObject, lockOptions ); try { final List results = loaderToUse.doQueryAndInitializeNonLazyCollections( session, qp, false ); log.debug( "Done entity batch load" ); return getObjectFromList(results, id, session); } catch ( SQLException sqle ) { throw session.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not load an entity batch: " + MessageHelper.infoString( persister(), ids, session.getFactory() ), loaderToUse.getSQLString() ); } }
_originalProcessUid = new Uid(Uid.nullUid()); _owningTransactionUid = hdr.getTxId(); if (txojLogger.logger.isDebugEnabled()) { txojLogger.logger.debug("RecoveredTransactionalObject::findHoldingTransaction - uid is "+_owningTransactionUid); return _owningTransactionUid.notEquals(Uid.nullUid());
private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
/** * This is called periodically by the RecoveryManager */ public void periodicWorkFirstPass() { // Transaction type boolean AtomicActions = false ; // uids per transaction type InputObjectState aa_uids = new InputObjectState() ; try { if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("AtomicActionRecoveryModule first pass"); } AtomicActions = _recoveryStore.allObjUids( _transactionType, aa_uids ); } catch ( ObjectStoreException ex ) { tsLogger.i18NLogger.warn_recovery_AtomicActionRecoveryModule_1(ex); } if ( AtomicActions ) { _transactionUidVector = processTransactions( aa_uids ) ; } }
public AtomicActionRecoveryModule() { if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("AtomicActionRecoveryModule created"); } if (_recoveryStore == null) { _recoveryStore = StoreManager.getRecoveryStore(); } _transactionStatusConnectionMgr = new TransactionStatusConnectionManager() ; }
private ProcessBuilder buildProcess(String expressionCommand, long timeout, String host) { String command = String.format(expressionCommand, timeout, host); if (logger.isDebugEnabled()) { logger.debug("executing ping:: " + command); } ProcessBuilder builder = new ProcessBuilder(command.split(" ")); return builder; }
if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("ExpiredAssumedCompleteScanner - scanning to remove items from before "+_timeFormat.format(oldestSurviving)); InputObjectState uids = new InputObjectState(); if (_recoveryStore.allObjUids(_typeName, uids)) theUid = UidHelper.unpackFrom(uids); if (theUid.equals(Uid.nullUid())) endOfUids = true; else Uid newUid = new Uid(theUid); RecoveringTransaction aTransaction = null; if (_typeName == AssumedCompleteTransaction.typeName()) {