Class UsageDataPersistenceTask

java.lang.Object
org.wso2.carbon.usage.agent.persist.UsageDataPersistenceTask
All Implemented Interfaces:
Runnable

public class UsageDataPersistenceTask extends Object implements Runnable
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • persistUsage

      public void persistUsage(Queue<BandwidthUsage> jobQueue) throws UsageException
      this method create a Summarizer object for each tenant and call accumulate() method to accumulate usage statistics
      Parameters:
      jobQueue - usage data persistence jobs
      Throws:
      UsageException