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

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

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

origin: psi-probe/psi-probe

 logger.warn("pool is null {}", source.getJdbcUrl());
} else {
 dataSourceInfo.setEstablishedConnections(pool.getTotalCreatedConnections());
origin: org.apache.sentry/sentry-shaded-miscellaneous

public int getTotalCreatedConnections() {
  return this.pool.getTotalCreatedConnections();
}
origin: stackoverflow.com

 /**
 * Get a status information of the JDBC connections.
 * 
 * @return The status information of the JDBC connections.
 */
public String getConnectionStatus() {
  String status = "unknown";
  if (dataSource instanceof BoneCPDataSource) {

    BoneCPDataSource bcpDataSource = (BoneCPDataSource) dataSource;
    BoneCP bcp = bcpDataSource.getPool();
    status = "JDBC connections: " + bcp.getTotalLeased()
      + " in use / " + bcp.getTotalFree()
      + " in pool / total created "
      + bcp.getTotalCreatedConnections();

  }
  return status;
}
com.jolbox.bonecpBoneCPgetTotalCreatedConnections

Javadoc

Return total number of connections created in all partitions.

Popular methods of BoneCP

  • getConnection
  • shutdown
    Closes off this connection pool.
  • <init>
    Constructor.
  • getConfig
    Gets config object.
  • getTotalLeased
    Return total number of connections currently in use by an application
  • captureStackTrace
    Throw an exception to capture it so as to be able to print it out later on
  • 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

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
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