public JChannelWrapper addRef() { this.refCount++; if (logger.isTraceEnabled()) logger.trace(this + "::RefCount++ = " + refCount + " on channel " + channelName); return this; }
private static void dump(Document document) { if ( !log.isTraceEnabled() ) { return; } final ByteArrayOutputStream baos = new ByteArrayOutputStream(); final Writer w = new PrintWriter( baos ); try { final XMLWriter xw = new XMLWriter( w, new OutputFormat( " ", true ) ); xw.write( document ); w.flush(); } catch (IOException e1) { throw new RuntimeException( "Error dumping enhanced class", e1 ); } log.tracef( "Envers-generate entity mapping -----------------------------\n%s", baos.toString() ); log.trace( "------------------------------------------------------------" ); } }
/** * 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); } }
/** * 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); }
/** * 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 nestedCommit () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockRecord::nestedCommit() for "+order()); } /* default constructor problem. */ if (managerAddress == null) return TwoPhaseOutcome.FINISH_ERROR; if (actionHandle != null) { Uid toRelease = actionHandle.get_uid(); actionHandle = actionHandle.parent(); return (managerAddress.propagate(toRelease, actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else { txojLogger.i18NLogger.warn_LockRecord_4(); } return TwoPhaseOutcome.FINISH_ERROR; }
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; }
/** * 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 nestedCommit () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockRecord::nestedCommit() for "+order()); } /* default constructor problem. */ if (managerAddress == null) return TwoPhaseOutcome.FINISH_ERROR; if (actionHandle != null) { Uid toRelease = actionHandle.get_uid(); actionHandle = actionHandle.parent(); return (managerAddress.propagate(toRelease, actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else { txojLogger.i18NLogger.warn_LockRecord_4(); } return TwoPhaseOutcome.FINISH_ERROR; }
public void removeClusterTopologyListener(final ClusterTopologyListener listener) { if (logger.isTraceEnabled()) { logger.trace(this + "::Removing topology listener " + listener, new Exception("Trace")); } synchronized (topologyListeners) { topologyListeners.remove(listener); } }
/** * 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 nestedCommit () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockRecord::nestedCommit() for "+order()); } /* default constructor problem. */ if (managerAddress == null) return TwoPhaseOutcome.FINISH_ERROR; if (actionHandle != null) { Uid toRelease = actionHandle.get_uid(); actionHandle = actionHandle.parent(); return (managerAddress.propagate(toRelease, actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else { txojLogger.i18NLogger.warn_LockRecord_4(); } return TwoPhaseOutcome.FINISH_ERROR; }
public void removeReceiver(JGroupsReceiver receiver) { if (logger.isTraceEnabled()) logger.trace(this + "::removeReceiver: " + receiver + " on " + channelName, new Exception("Trace")); synchronized (receivers) { receivers.remove(receiver); } }
/** * 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; }