Package com.alibaba.druid.stat

Examples of com.alibaba.druid.stat.JdbcSqlStat.reset()


        conn.close();

        Assert.assertEquals(2, sqlStat.getInputStreamOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getInputStreamOpenCount());
    }

    public void test_stat_1() throws Exception {
        Connection conn = dataSource.getConnection();
View Full Code Here


        conn.close();

        Assert.assertEquals(3, sqlStat.getInputStreamOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getInputStreamOpenCount());
    }
}
View Full Code Here

       
        JdbcSqlStat sqlStat = dataSource.getDataSourceStat().getSqlStat(sql);
        Assert.assertNotNull(sqlStat);
       
        Assert.assertEquals(1, sqlStat.getClobOpenCount());
        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getClobOpenCount());
    }

}
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.