org.apache.commons.dbcp

Class AbandonedTrace

Known Direct Subclasses:
DelegatingConnection, DelegatingResultSet, DelegatingStatement

public class AbandonedTrace
extends Object

Tracks db connection usage for recovering and reporting abandoned db connections. The JDBC Connection, Statement, and ResultSet classes extend this class.
Version:
$Revision: 482015 $ $Date: 2006-12-03 19:22:09 -0700 (Sun, 03 Dec 2006) $
Author:
Glenn L. Nielsen

Constructor Summary

AbandonedTrace()
Create a new AbandonedTrace without config and without doing abandoned tracing.
AbandonedTrace(AbandonedConfig config)
Construct a new AbandonedTrace with no parent object.
AbandonedTrace(AbandonedTrace parent)
Construct a new AbandonedTrace with a parent object.

Method Summary

void
printStackTrace()
If logAbandoned=true, print a stack trace of the code that created this object.

Constructor Details

AbandonedTrace

public AbandonedTrace()
Create a new AbandonedTrace without config and without doing abandoned tracing.

AbandonedTrace

public AbandonedTrace(AbandonedConfig config)
Construct a new AbandonedTrace with no parent object.
Parameters:
config - AbandonedConfig

AbandonedTrace

public AbandonedTrace(AbandonedTrace parent)
Construct a new AbandonedTrace with a parent object.
Parameters:
parent - AbandonedTrace parent object

Method Details

printStackTrace

public void printStackTrace()
If logAbandoned=true, print a stack trace of the code that created this object.

Copyright © 2001-2004 Apache Software Foundation. Documenation generated June 19 2007.