Package br.com.caelum.vraptor.dash.runtime

Examples of br.com.caelum.vraptor.dash.runtime.RuntimeStatisticsCollector


    Statistics statistics = session.getSessionFactory().getStatistics();

    Runtime runtime = Runtime.getRuntime();

    Collectors collectors = new Collectors(Arrays.asList(new HibernateStatisticsCollector(statistics), new RuntimeStatisticsCollector(runtime)));
    collectStatistics(collectors);

    C3P0PooledDataSource c3p0PooledDataSource = new C3P0PooledDataSource();
    result.include("maxPoolSize", c3p0PooledDataSource.getMaxPoolSize());
    result.include("initPoolSize", c3p0PooledDataSource.getInitialPoolSize());
View Full Code Here


    Statistics statistics = session.getSessionFactory().getStatistics();

    Runtime runtime = Runtime.getRuntime();

    Collectors collectors = new Collectors(Arrays.asList(new HibernateStatisticsCollector(statistics), new RuntimeStatisticsCollector(runtime)));
    collectStatistics(collectors);

    C3P0PooledDataSource c3p0PooledDataSource = new C3P0PooledDataSource();
    result.include("maxPoolSize", c3p0PooledDataSource.getMaxPoolSize());
    result.include("initPoolSize", c3p0PooledDataSource.getInitialPoolSize());
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.dash.runtime.RuntimeStatisticsCollector

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.