Uses of Class
org.wso2.carbon.usage.agent.exception.UsageException
-
Packages that use UsageException Package Description org.wso2.carbon.usage.agent.api org.wso2.carbon.usage.agent.persist org.wso2.carbon.usage.agent.services org.wso2.carbon.usage.agent.util -
-
Uses of UsageException in org.wso2.carbon.usage.agent.api
Methods in org.wso2.carbon.usage.agent.api that throw UsageException Modifier and Type Method Description longCustomMeteringAgent. addUsage(String duration, String measurement, long value)Add a long value to the usage, if there were no previous entry, this will start with value 0String[]CustomMeteringAgent. getRecordedDurations(String measurement)Get recorded durationsbooleanCustomMeteringAgent. isUsageEntryExists(String duration, String measurement)Check whether the usage entry exist or notvoidCustomMeteringAgent. persistUsage(String duration, String measurement, String value)Persist usage of a userStringCustomMeteringAgent. retrieveUsage(String duration, String measurement)Retrieve usage of a user -
Uses of UsageException in org.wso2.carbon.usage.agent.persist
Methods in org.wso2.carbon.usage.agent.persist that throw UsageException Modifier and Type Method Description voidUsageDataPersistenceTask. persistUsage(Queue<BandwidthUsage> jobQueue)this method create a Summarizer object for each tenant and call accumulate() method to accumulate usage statistics -
Uses of UsageException in org.wso2.carbon.usage.agent.services
Methods in org.wso2.carbon.usage.agent.services that throw UsageException Modifier and Type Method Description StringCustomMeteringService. retrieveUsage(String duration, String measurement)method to retrieve usage -
Uses of UsageException in org.wso2.carbon.usage.agent.util
Methods in org.wso2.carbon.usage.agent.util that throw UsageException Modifier and Type Method Description static voidPublisherUtils. publish(BandwidthUsage usage)this method get the event payload, construct the SOAP envelop and call the publish method in EventBrokerService.static StringPublisherUtils. updateServerName(int tenantId)method to update server name
-