Examples of UsageDataPersistenceManager


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