Class UsageDataPersistenceTask
java.lang.Object
org.wso2.carbon.usage.agent.persist.UsageDataPersistenceTask
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionUsageDataPersistenceTask(Queue<BandwidthUsage> jobs, UsageAgentConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidpersistUsage(Queue<BandwidthUsage> jobQueue) this method create a Summarizer object for each tenant and call accumulate() method to accumulate usage statisticsvoidrun()
-
Constructor Details
-
UsageDataPersistenceTask
-
-
Method Details
-
run
public void run() -
persistUsage
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
-