Package com.alibaba.druid.stat

Examples of com.alibaba.druid.stat.JdbcConnectionStat$EntryMBean


import com.alibaba.druid.stat.JdbcStatManager;

public class StatisticTest extends TestCase {

    public void test_stat() throws Exception {
        JdbcConnectionStat stat = new JdbcConnectionStat();
        Assert.assertEquals(null, stat.getConnectLastTime());
        stat.setActiveCount(1);
        Assert.assertEquals(1, stat.getActiveMax());
        stat.setActiveCount(2);
        Assert.assertEquals(2, stat.getActiveMax());
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.stat.JdbcConnectionStat$EntryMBean

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.