Package org.voltdb

Examples of org.voltdb.StatsAgent


        // Create and register a singleton planner stats collector, if this is the first time.
        // In mock test environments there may be no stats agent.
        synchronized (this) {
            if (m_plannerStats == null) {
                final StatsAgent statsAgent = VoltDB.instance().getStatsAgent();
                if (statsAgent != null) {
                    m_plannerStats = new PlannerStatsCollector(-1);
                    statsAgent.registerStatsSource(StatsSelector.PLANNER, -1, m_plannerStats);
                }
            }
        }
    }
View Full Code Here


    public ExecutionEngine(long siteId, int partitionId) {
        m_partitionId = partitionId;
        m_siteId = siteId;
        org.voltdb.EELibraryLoader.loadExecutionEngineLibrary(true);
        // In mock test environments there may be no stats agent.
        final StatsAgent statsAgent = VoltDB.instance().getStatsAgent();
        if (statsAgent != null) {
            m_plannerStats = new PlannerStatsCollector(siteId);
            statsAgent.registerStatsSource(StatsSelector.PLANNER, siteId, m_plannerStats);
        }
    }
View Full Code Here

TOP

Related Classes of org.voltdb.StatsAgent

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.