public class LoggerPerTransactionStrategy<C extends IPhynixxConnection & IXADataRecorderAware> extends PhynixxManagedConnectionListenerAdapter<C> implements IPhynixxLoggerSystemStrategy<C>, IPhynixxManagedConnectionListener<C>
| Constructor and Description |
|---|
LoggerPerTransactionStrategy(IDataLoggerFactory loggerFactory)
per thread a new Logger cpould be instanciated with aid of the
loggerFacrory
|
| Modifier and Type | Method and Description |
|---|---|
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)
If a dataRecorder is found in this phase it indicates an abnormal program
flow.
|
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
IXADataRecorder.isEmpty()
and destroys all complete dataRecorders |
connectionCommitting, connectionErrorOccurred, connectionPrepared, connectionPreparing, connectionRequiresTransactionExecuted, connectionReset, connectionRollingBackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectionCommitting, connectionErrorOccurred, connectionPrepared, connectionPreparing, connectionRequiresTransactionExecuted, connectionReset, connectionRollingBackpublic LoggerPerTransactionStrategy(IDataLoggerFactory loggerFactory)
loggerFactory - * @throws Exceptionpublic void addLoggerListener(IXARecorderResourceListener listener)
public void close()
IPhynixxLoggerSystemStrategyclose in interface IPhynixxLoggerSystemStrategy<C extends IPhynixxConnection & IXADataRecorderAware>public void connectionRecovering(IManagedConnectionEvent<C> event)
IPhynixxManagedConnectionListenerconnectionRecovering 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)
PhynixxManagedConnectionListenerAdapterconnectionRolledback in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>connectionRolledback in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>public void connectionCommitted(IManagedConnectionCommitEvent<C> event)
PhynixxManagedConnectionListenerAdapterconnectionCommitted in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>connectionCommitted in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>public void connectionRequiresTransaction(IManagedConnectionEvent<C> event)
PhynixxManagedConnectionListenerAdapterconnectionRequiresTransaction in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection & IXADataRecorderAware>connectionRequiresTransaction in class PhynixxManagedConnectionListenerAdapter<C extends IPhynixxConnection & IXADataRecorderAware>event - current connectionpublic List<IXADataRecorder> readIncompleteTransactions()
IXADataRecorder.isEmpty()
and destroys all complete dataRecordersreadIncompleteTransactions in interface IPhynixxLoggerSystemStrategy<C extends IPhynixxConnection & IXADataRecorderAware>public IPhynixxManagedConnection<C> decorate(IPhynixxManagedConnection<C> managedConnection)
IPhynixxConnectionProxyDecoratordecorate in interface IPhynixxConnectionProxyDecorator<C extends IPhynixxConnection & IXADataRecorderAware>Copyright © 2017. All rights reserved.