|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csc.phynixx.connection.PhynixxManagedConnectionListenerAdapter<C>
org.csc.phynixx.connection.loggersystem.LoggerPerTransactionStrategy<C>
public class LoggerPerTransactionStrategy<C extends IPhynixxConnection & IXADataRecorderAware>
this listener observes the lifecycle of a connection and associates a xaDataRecorder if necessary.
Constructor Summary | |
---|---|
LoggerPerTransactionStrategy(IDataLoggerFactory loggerFactory)
per thread a new Logger cpould be instanciated with aid of the loggerFacrory |
Method Summary | |
---|---|
void |
addLoggerListener(IXARecorderResourceListener listener)
the logger is added to all instanciated Loggers |
void |
close()
closes the strategy including all resources |
void |
connectionCommitted(IManagedConnectionCommitEvent<C> event)
NOOP |
void |
connectionFreed(IManagedConnectionEvent<C> event)
Logger will be closed. |
void |
connectionRecovered(IManagedConnectionEvent<C> event)
destroys the datalogger |
void |
connectionRecovering(IManagedConnectionEvent<C> event)
connection enters state 'recovering' |
void |
connectionReleased(IManagedConnectionEvent<C> event)
Logger isn't close. |
void |
connectionRequiresTransaction(IManagedConnectionEvent<C> event)
NOOP |
void |
connectionRolledback(IManagedConnectionEvent<C> event)
NOOP |
IPhynixxManagedConnection<C> |
decorate(IPhynixxManagedConnection<C> managedConnection)
installs this strategy to the given connection |
List<IXADataRecorder> |
readIncompleteTransactions()
recovers all incomplete dataRecorders org.csc.phynixx.loggersystem.logrecord.IXADataRecorder#isCompleted() and destroys all complete dataRecorders |
Methods inherited from class org.csc.phynixx.connection.PhynixxManagedConnectionListenerAdapter |
---|
connectionCommitting, connectionErrorOccurred, connectionPrepared, connectionPreparing, connectionRequiresTransactionExecuted, connectionReset, connectionRollingBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.csc.phynixx.connection.IPhynixxManagedConnectionListener |
---|
connectionCommitting, connectionErrorOccurred, connectionPrepared, connectionPreparing, connectionRequiresTransactionExecuted, connectionReset, connectionRollingBack |
Constructor Detail |
---|
public LoggerPerTransactionStrategy(IDataLoggerFactory loggerFactory)
loggerFactory
-
Exception
Method Detail |
---|
public void addLoggerListener(IXARecorderResourceListener listener)
public void close()
IPhynixxLoggerSystemStrategy
close
in interface IPhynixxLoggerSystemStrategy<C extends IPhynixxConnection & IXADataRecorderAware>
public void connectionRecovering(IManagedConnectionEvent<C> event)
IPhynixxManagedConnectionListener
connectionRecovering
in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>
connectionRecovering
in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>
public void connectionReleased(IManagedConnectionEvent<C> event)
connectionReleased
in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>
connectionReleased
in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>
event
- current connectionpublic void connectionFreed(IManagedConnectionEvent<C> event)
connectionFreed
in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>
connectionFreed
in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>
event
- current connectionpublic void connectionRecovered(IManagedConnectionEvent<C> event)
connectionRecovered
in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>
connectionRecovered
in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>
public void connectionRolledback(IManagedConnectionEvent<C> event)
PhynixxManagedConnectionListenerAdapter
connectionRolledback
in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>
connectionRolledback
in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>
public void connectionCommitted(IManagedConnectionCommitEvent<C> event)
PhynixxManagedConnectionListenerAdapter
connectionCommitted
in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>
connectionCommitted
in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>
public void connectionRequiresTransaction(IManagedConnectionEvent<C> event)
PhynixxManagedConnectionListenerAdapter
connectionRequiresTransaction
in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>
connectionRequiresTransaction
in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>
event
- current connectionpublic List<IXADataRecorder> readIncompleteTransactions()
org.csc.phynixx.loggersystem.logrecord.IXADataRecorder#isCompleted()
and destroys all complete dataRecorders
readIncompleteTransactions
in interface IPhynixxLoggerSystemStrategy<C extends IPhynixxConnection & IXADataRecorderAware>
public IPhynixxManagedConnection<C> decorate(IPhynixxManagedConnection<C> managedConnection)
IPhynixxConnectionProxyDecorator
decorate
in interface IPhynixxConnectionProxyDecorator<C extends IPhynixxConnection & IXADataRecorderAware>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |