Class UsageDataPersistenceTask
- java.lang.Object
-
- org.wso2.carbon.usage.agent.persist.UsageDataPersistenceTask
-
-
Constructor Summary
Constructors Constructor Description UsageDataPersistenceTask(Queue<BandwidthUsage> jobs, UsageAgentConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpersistUsage(Queue<BandwidthUsage> jobQueue)this method create a Summarizer object for each tenant and call accumulate() method to accumulate usage statisticsvoidrun()
-
-
-
Constructor Detail
-
UsageDataPersistenceTask
public UsageDataPersistenceTask(Queue<BandwidthUsage> jobs, UsageAgentConfiguration configuration)
-
-
Method Detail
-
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
-
-