Package com.alibaba.druid.stat

Examples of com.alibaba.druid.stat.JdbcStatManager


    private AtomicLong fetchRowCout     = new AtomicLong();

    Connection         globalConnection = null;

    protected void setUp() throws Exception {
        JdbcStatManager stat = JdbcStatManager.getInstance();

        stat.reset();

        Class.forName("com.alibaba.druid.proxy.DruidDriver");

        Connection conn = DriverManager.getConnection(url);

        int size = stat.getConnectionList().size();
        Assert.assertTrue(size >= 1);
        conn.close();

        TabularData connectionList = stat.getConnectionList();

        Assert.assertEquals(connectionList.size(), size - 1);

        stat.reset();

        globalConnection = DriverManager.getConnection(url);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.stat.JdbcStatManager

Copyright © 2018 www.massapicom. 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.