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

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

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

origin: apache/hive

 @Override
 public Integer getValue() {
  if (ds.getPool() != null) {
   return ds.getPool().getStatistics().getTotalLeased();
  } else {
   return 0;
  }
 }
});
origin: apache/hive

 @Override
 public Integer getValue() {
  if (ds.getPool() != null) {
   return ds.getPool().getStatistics().getTotalCreatedConnections();
  } else {
   return 0;
  }
 }
});
origin: apache/hive

 @Override
 public Integer getValue() {
  if (ds.getPool() != null) {
   return ds.getPool().getStatistics().getTotalFree();
  } else {
   return 0;
  }
 }
});
origin: apache/hive

 @Override
 public Double getValue() {
  if (ds.getPool() != null) {
   return ds.getPool().getStatistics().getConnectionWaitTimeAvg();
  } else {
   return 0.0;
  }
 }
});
origin: org.apache.sentry/sentry-shaded-miscellaneous

BoneCPConfig config = connectionHandle.getPool().getConfig();
this.connectionHook = config.getConnectionHook();
this.statistics = connectionHandle.getPool().getStatistics();
this.statisticsEnabled = config.isStatisticsEnabled();
origin: org.apache.sentry/sentry-shaded-miscellaneous

this.connectionTrackingDisabled = pool.getConfig().isDisableConnectionTracking();
this.statisticsEnabled = pool.getConfig().isStatisticsEnabled();
this.statistics = pool.getStatistics();
this.detectUnresolvedTransactions = pool.getConfig().isDetectUnresolvedTransactions();
this.detectUnclosedStatements = pool.getConfig().isDetectUnclosedStatements();
int cacheSize = pool.getConfig().getStatementsCacheSize();
if ( (cacheSize > 0) && newConnection ) {
  this.preparedStatementCache = new StatementCache(cacheSize, pool.getConfig().isStatisticsEnabled(), pool.getStatistics());
  this.callableStatementCache = new StatementCache(cacheSize, pool.getConfig().isStatisticsEnabled(), pool.getStatistics());
  this.statementCachingEnabled = true;
com.jolbox.bonecpBoneCPgetStatistics

Javadoc

Returns a reference to the statistics class.

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
  • captureStackTrace
    Throw an exception to capture it so as to be able to print it out later on
  • closeStatement
  • getDbIsDown
    Returns the dbIsDown field.
  • 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

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ImageIO (javax.imageio)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JTable (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top PhpStorm 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