Package org.apache.stratos.usage.agent.persist

Examples of org.apache.stratos.usage.agent.persist.UsageDataPersistenceManager


     */

    public static void initializePersistenceManager() {
        File usageAgentConfigFile  = new File(CarbonUtils.getCarbonConfigDirPath() + File.separator +
                StratosConstants.MULTITENANCY_CONFIG_FOLDER + File.separator + Util.USAGE_THROTTLING_AGENT_CONFIG_FILE);
        persistenceManager = new UsageDataPersistenceManager(new UsageAgentConfiguration(usageAgentConfigFile));
        //start a thread for persisting bandwidth Usage statistics
        if("true".equals(ServerConfiguration.getInstance().getFirstProperty("EnableMetering"))){
            persistenceManager.scheduleBandwidthUsageDataRetrievalTask();
            persistenceManager.scheduleUsageDataPersistenceTask();
        }
View Full Code Here

TOP

Related Classes of org.apache.stratos.usage.agent.persist.UsageDataPersistenceManager

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.