|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.dbcp.AbandonedTrace
public class AbandonedTrace
Tracks db connection usage for recovering and reporting abandoned db connections. The JDBC Connection, Statement, and ResultSet classes extend this class.
Constructor Summary | |
---|---|
AbandonedTrace()
Deprecated. Create a new AbandonedTrace without config and without doing abandoned tracing. |
|
AbandonedTrace(AbandonedConfig config)
Deprecated. Construct a new AbandonedTrace with no parent object. |
|
AbandonedTrace(AbandonedTrace parent)
Deprecated. Construct a new AbandonedTrace with a parent object. |
Method Summary | |
---|---|
protected void |
addTrace(AbandonedTrace trace)
Deprecated. Add an object to the list of objects being traced. |
protected void |
clearTrace()
Deprecated. Clear the list of objects being traced by this object. |
protected AbandonedConfig |
getConfig()
Deprecated. Get the abandoned config for this object. |
protected long |
getLastUsed()
Deprecated. Get the last time this object was used in ms. |
protected List |
getTrace()
Deprecated. Get a list of objects being traced by this object. |
void |
printStackTrace()
Deprecated. If logAbandoned=true, print a stack trace of the code that created this object. |
protected void |
removeTrace(AbandonedTrace trace)
Deprecated. Remove a child object this object is tracing. |
protected void |
setLastUsed()
Deprecated. Set the time this object was last used to the current time in ms. |
protected void |
setLastUsed(long time)
Deprecated. Set the time in ms this object was last used. |
protected void |
setStackTrace()
Deprecated. If logAbandoned=true generate a stack trace for this object then add this object to the parent object trace list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbandonedTrace()
public AbandonedTrace(AbandonedConfig config)
AbandonedConfig
- public AbandonedTrace(AbandonedTrace parent)
AbandonedTrace
- parent objectMethod Detail |
---|
protected AbandonedConfig getConfig()
protected long getLastUsed()
protected void setLastUsed()
protected void setLastUsed(long time)
long
- time in msprotected void setStackTrace()
protected void addTrace(AbandonedTrace trace)
AbandonedTrace
- object to addprotected void clearTrace()
protected List getTrace()
public void printStackTrace()
protected void removeTrace(AbandonedTrace trace)
AbandonedTrace
- object to remvoe
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |