Tabnine Logo
BoneCP.captureStackTrace
Code IndexAdd Tabnine to your IDE (free)

How to use
captureStackTrace
method
in
com.jolbox.bonecp.BoneCP

Best Java code snippets using com.jolbox.bonecp.BoneCP.captureStackTrace (Showing top 16 results out of 315)

origin: org.apache.sentry/sentry-shaded-miscellaneous

/**
 * Depending on options, return a stack trace or an empty string
 * @return stacktrace / empty string
 */
protected String maybeCaptureStackTrace() {
  if (this.detectUnclosedStatements){
    return this.pool.captureStackTrace(STATEMENT_NOT_CLOSED);
  }
  return this.noStackTrace;
}
origin: org.apache.sentry/sentry-shaded-miscellaneous

/** Starts off a new thread to monitor this connection attempt.
 * @param connectionHandle to monitor
 */
protected void watchConnection(ConnectionHandle connectionHandle) {
  String message = captureStackTrace(UNCLOSED_EXCEPTION_MESSAGE);
  this.closeConnectionExecutor.submit(new CloseThreadMonitor(Thread.currentThread(), connectionHandle, message, this.closeConnectionWatchTimeoutInMs));
}
origin: org.wisdom-framework/wisdom-jdbc-datasources

/**
 * Starts off a new thread to monitor this connection attempt.
 *
 * @param connectionHandle to monitor
 */
protected void watchConnection(ConnectionHandle connectionHandle) {
  String message = captureStackTrace(UNCLOSED_EXCEPTION_MESSAGE);
  this.closeConnectionExecutor.submit(new CloseThreadMonitor(Thread.currentThread(), connectionHandle, message, this.closeConnectionWatchTimeoutInMs));
}
origin: org.apache.sentry/sentry-shaded-miscellaneous

public void setAutoCommit(boolean autoCommit) throws SQLException {
  checkClosed();
  try {
    this.connection.setAutoCommit(autoCommit);
    this.txResolved = autoCommit;
    if (this.detectUnresolvedTransactions && !autoCommit){
      this.autoCommitStackTrace = this.pool.captureStackTrace(SET_AUTO_COMMIT_FALSE_WAS_CALLED_MESSAGE);
    }
  } catch (SQLException e) {
    throw markPossiblyBroken(e);
  }
}
origin: org.wisdom-framework/wisdom-jdbc-datasources

LOGGER.info("Shutting down connection pool...");
this.poolShuttingDown = true;
this.shutdownStackTrace = captureStackTrace(SHUTDOWN_LOCATION_TRACE);
origin: org.apache.sentry/sentry-shaded-miscellaneous

logger.info("Shutting down connection pool...");
this.poolShuttingDown = true;
this.shutdownStackTrace = captureStackTrace(SHUTDOWN_LOCATION_TRACE);
this.keepAliveScheduler.shutdownNow(); // stop threads from firing.
this.maxAliveScheduler.shutdownNow(); // stop threads from firing.
origin: org.apache.sentry/sentry-shaded-miscellaneous

this.doubleCloseException = this.pool.captureStackTrace(CLOSED_TWICE_EXCEPTION_MESSAGE);
String currentLocation = this.pool.captureStackTrace("Last closed trace from thread ["+Thread.currentThread().getName()+"]:\n");
logger.error(String.format(LOG_ERROR_MESSAGE, this.doubleCloseException, currentLocation));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
origin: org.apache.sentry/sentry-shaded-miscellaneous

result.setOpenStackTrace(this.pool.captureStackTrace(STATEMENT_NOT_CLOSED));
com.jolbox.bonecpBoneCPcaptureStackTrace

Javadoc

Throw an exception to capture it so as to be able to print it out later on

Popular methods of BoneCP

  • getConnection
  • shutdown
    Closes off this connection pool.
  • <init>
    Constructor.
  • getConfig
    Gets config object.
  • getTotalCreatedConnections
    Return total number of connections created in all partitions.
  • getTotalLeased
    Return total number of connections currently in use by an application
  • closeStatement
  • getDbIsDown
    Returns the dbIsDown field.
  • getStatistics
    Returns a reference to the statistics class.
  • getTotalFree
    Return the number of free connections available to an application right away (excluding connections
  • internalReleaseConnection
    Release a connection by placing the connection back in the pool.
  • isConnectionHandleAlive
    Sends a dummy statement to the server to keep the connection alive
  • internalReleaseConnection,
  • isConnectionHandleAlive,
  • maybeSignalForMoreConnections,
  • obtainRawInternalConnection,
  • postDestroyConnection,
  • putConnectionBackInPartition,
  • registerUnregisterJMX,
  • unregisterDriver,
  • destroyConnection

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Permission (java.security)
    Legacy security code; do not use.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JCheckBox (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 12 Jupyter Notebook extensions
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