public JChannelWrapper addRef() { this.refCount++; if (logger.isTraceEnabled()) logger.trace(this + "::RefCount++ = " + refCount + " on channel " + channelName); return this; }
/** * Constructs a HiLoOptimizer * * @param returnClass The Java type of the values to be generated * @param incrementSize The increment size. */ public HiLoOptimizer(Class returnClass, int incrementSize) { super( returnClass, incrementSize ); if ( incrementSize < 1 ) { throw new HibernateException( "increment size cannot be less than 1" ); } if ( log.isTraceEnabled() ) { log.tracev( "Creating hilo optimizer with [incrementSize={0}; returnClass={1}]", incrementSize, returnClass.getName() ); } }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Return a transaction propagation context for the transaction * currently associated with the invoking thread, or <code>null</code> * if the invoking thread is not associated with a transaction. */ public Object getTransactionPropagationContext() { if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); } String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm()); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid); } return txid; }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Return a transaction propagation context for the transaction * currently associated with the invoking thread, or <code>null</code> * if the invoking thread is not associated with a transaction. */ public Object getTransactionPropagationContext() { if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); } String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm()); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid); } return txid; }
public void addReceiver(JGroupsReceiver jGroupsReceiver) { synchronized (receivers) { if (logger.isTraceEnabled()) logger.trace(this + "::Add Receiver: " + jGroupsReceiver + " on " + channelName); receivers.add(jGroupsReceiver); } }
/** * Constructs a LegacyHiLoAlgorithmOptimizer * * @param returnClass The Java type of the values to be generated * @param incrementSize The increment size. */ public LegacyHiLoAlgorithmOptimizer(Class returnClass, int incrementSize) { super( returnClass, incrementSize ); if ( incrementSize < 1 ) { throw new HibernateException( "increment size cannot be less than 1" ); } if ( log.isTraceEnabled() ) { log.tracev( "Creating hilo optimizer (legacy) with [incrementSize={0}; returnClass={1}]", incrementSize, returnClass.getName() ); } initialMaxLo = incrementSize; }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Return a transaction propagation context for the transaction * currently associated with the invoking thread, or <code>null</code> * if the invoking thread is not associated with a transaction. */ public Object getTransactionPropagationContext() { if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); } String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm()); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid); } return txid; }
private void queueExecutor() { if (logger.isTraceEnabled()) { logger.trace(this + "::Adding Runner on Executor for delivery"); } sessionExecutor.execute(runner); }
if ( log.isTraceEnabled() ) { log.tracev( "Reassociating transient instance: {0}", MessageHelper.infoString( persister, id, event.getSession().getFactory() )
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
public int topLevelAbort () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::topLevelAbort() for "+order()); } if (doRelease) { if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_3()); } CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }
private ChannelBroadcastEndpointFactory(JChannelManager manager, JChannel channel, String channelName) { if (logger.isTraceEnabled()) { logger.trace("new ChannelBroadcastEndpointFactory(" + manager + ", " + channel + ", " + channelName, new Exception("trace")); } this.manager = manager; this.channel = channel; this.channelName = channelName; }
if ( log.isTraceEnabled() ) { log.tracev( "Initializing object from ResultSet: {0}", MessageHelper.infoString( : null; if ( rowId != null && log.isTraceEnabled() ) { log.tracev( "extracted ROWID value: {0}", rowId
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
public int topLevelCommit () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::topLevelCommit() for "+order()); } if (doRelease) { if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_4()); } CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }
public void removeClusterTopologyListener(final ClusterTopologyListener listener) { if (logger.isTraceEnabled()) { logger.trace(this + "::Removing topology listener " + listener, new Exception("Trace")); } synchronized (topologyListeners) { topologyListeners.remove(listener); } }
if ( log.isTraceEnabled() ) { log.tracev( "Locking {0} in mode: {1}", MessageHelper.infoString( persister, entry.getId(), source.getFactory() ),