Tabnine Logo
Loggable.getConnectionInformation
Code IndexAdd Tabnine to your IDE (free)

How to use
getConnectionInformation
method
in
com.p6spy.engine.common.Loggable

Best Java code snippets using com.p6spy.engine.common.Loggable.getConnectionInformation (Showing top 4 results out of 315)

origin: p6spy/p6spy

 protected void logElapsed(Loggable loggable, long timeElapsedNanos, Category category, SQLException e) {
  P6LogQuery.logElapsed(loggable.getConnectionInformation().getConnectionId(), timeElapsedNanos, category, loggable);
 }
}
origin: p6spy/p6spy

public static void logElapsed(int connectionId, long timeElapsedNanos, Category category, Loggable loggable) {
 // usually an expensive operation => cache where possible
 String sql = loggable.getSql();
 String url = loggable.getConnectionInformation().getUrl();
 if (logger != null && meetsThresholdRequirement(timeElapsedNanos) && isCategoryOk(category) && isLoggable(sql)) {
  doLogElapsed(connectionId, timeElapsedNanos, category, sql, loggable.getSqlWithValues(), url == null ? "" : url);
 } else if (isDebugEnabled()) {
  sql = loggable.getSqlWithValues();
  debug("P6Spy intentionally did not log category: " + category + ", statement: " + sql + "  Reason: logger=" + logger + ", isLoggable="
    + isLoggable(sql) + ", isCategoryOk=" + isCategoryOk(category) + ", meetsTreshold=" + meetsThresholdRequirement(timeElapsedNanos));
 }
}
origin: p6spy/p6spy

 protected void logElapsed(Loggable loggable, long timeElapsedNanos, Category category, SQLException e) {
  P6LogQuery.logElapsed(loggable.getConnectionInformation().getConnectionId(), timeElapsedNanos, category, loggable);
 }
}
origin: p6spy/p6spy

public static void logElapsed(int connectionId, long timeElapsedNanos, Category category, Loggable loggable) {
 // usually an expensive operation => cache where possible
 String sql = loggable.getSql();
 String url = loggable.getConnectionInformation().getUrl();
 if (logger != null && meetsThresholdRequirement(timeElapsedNanos) && isCategoryOk(category) && isLoggable(sql)) {
  doLogElapsed(connectionId, timeElapsedNanos, category, sql, loggable.getSqlWithValues(), url == null ? "" : url);
 } else if (isDebugEnabled()) {
  sql = loggable.getSqlWithValues();
  debug("P6Spy intentionally did not log category: " + category + ", statement: " + sql + "  Reason: logger=" + logger + ", isLoggable="
    + isLoggable(sql) + ", isCategoryOk=" + isCategoryOk(category) + ", meetsTreshold=" + meetsThresholdRequirement(timeElapsedNanos));
 }
}
com.p6spy.engine.commonLoggablegetConnectionInformation

Popular methods of Loggable

  • getSql
  • getSqlWithValues

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now