}
// Beginning of Txn
if (event instanceof QueryEvent)
{
QueryEvent qe = (QueryEvent)event;
String sql = qe.getSql().toString();
if ("BEGIN".equalsIgnoreCase(sql))
{
_isBeginTxnSeen = true;
_log.info("BEGIN sql: " + sql);
_currTxnSizeInBytes = event.getHeader().getEventLength();
startXtion(qe);
return;
}
}
if ( ! _isBeginTxnSeen )
{
if (_log.isDebugEnabled())
{
_log.debug("Skipping event (" + event
+ ") as this is before the start of first transaction");
}
return;
}
_currTxnSizeInBytes += event.getHeader().getEventLength();
if (event instanceof QueryEvent)
{
QueryEvent qe = (QueryEvent)event;
String sql = qe.getSql().toString();
if ("COMMIT".equalsIgnoreCase(sql))
{
_log.debug("COMMIT sql: " + sql);
endXtion(qe);
return;