|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.profiler.LoggingProfilerEventHandler
public class LoggingProfilerEventHandler
A profile event handler that just logs to the standard logging mechanism of the JDBC driver.
Constructor Summary | |
---|---|
LoggingProfilerEventHandler()
|
Method Summary | |
---|---|
void |
consumeEvent(ProfilerEvent evt)
|
void |
destroy()
Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed. |
void |
init(Connection conn,
java.util.Properties props)
Called once per connection that wants to use the extension The properties are the same ones passed in in the URL or arguments to Driver.connect() or DriverManager.getConnection(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingProfilerEventHandler()
Method Detail |
---|
public void consumeEvent(ProfilerEvent evt)
consumeEvent
in interface ProfilerEventHandler
public void destroy()
Extension
destroy
in interface Extension
public void init(Connection conn, java.util.Properties props) throws java.sql.SQLException
Extension
init
in interface Extension
conn
- the connection for which this extension is being createdprops
- configuration values as passed to the connection. Note that
in order to support javax.sql.DataSources, configuration properties specific
to an interceptor must be passed via setURL() on the
DataSource. Extension properties are not exposed via
accessor/mutator methods on DataSources.
java.sql.SQLException
- should be thrown if the the Extension
can not initialize itself.
|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |