Package com.icentris.util

Examples of com.icentris.util.CodeTimer.start()


  public static java.sql.Connection getConnection(String poolName)
    throws SQLException
  {
    CodeTimer timer = new CodeTimer();
    CodeTimerSegment segment = timer.start("ConnectionPool: getConnection");
    segment.setCanBeSubSegmentOnlyIfUnacceptable( true );
    ConnectionPool pool = (ConnectionPool) poolsByDb.get(poolName);
    if ( pool == null ) {
      throw new IllegalStateException("The ConnectionPool (" + poolName + ") has not been initialized yet");
    }
View Full Code Here


        timer = new CodeTimer();
        timer.setCallersToIgnore( callersToIgnore );
        Properties props = new Properties();
        props.setProperty("sqlQuery", sql);
        segment.setProperties( props );
        CodeTimerSegment subSegment = timer.start(callerDepth);
        subSegment.setLabel("SQL:executeQuery");
        subSegment.setSaveAggregateData( false );
        ResultSetWrapper results = new ResultSetWrapper( realStatement.executeQuery(sql), this );
        results.setCallersToIgnore( callersToIgnore );
        results.setUniqueString( "SQL:ResultSet.next() + getString():" + segment.getUniqueString().substring(4) );
View Full Code Here

        } else {
          props.setProperty("originalSql", originalSql);
          props.setProperty("params", params.toString());
        }
        segment.setProperties( props );
        CodeTimerSegment subSegment = timer.start( getCallerDepth() );
        subSegment.setLabel("SQL:executeQuery()");
        subSegment.setSaveAggregateData( false );
        ResultSetWrapper results = new ResultSetWrapper( realStatement.executeQuery(), this );
        results.setUniqueString( "SQL:ResultSet.next() + getString():" + segment.getUniqueString().substring(4) );
        results.setUseCodeTimer( useCodeTimer() );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.