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 |
Modifier and Type | Method and Description |
---|---|
long |
CustomMeteringAgent.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 0
|
String[] |
CustomMeteringAgent.getRecordedDurations(String measurement)
Get recorded durations
|
boolean |
CustomMeteringAgent.isUsageEntryExists(String duration,
String measurement)
Check whether the usage entry exist or not
|
void |
CustomMeteringAgent.persistUsage(String duration,
String measurement,
String value)
Persist usage of a user
|
String |
CustomMeteringAgent.retrieveUsage(String duration,
String measurement)
Retrieve usage of a user
|
Modifier and Type | Method and Description |
---|---|
void |
UsageDataPersistenceTask.persistUsage(Queue<BandwidthUsage> jobQueue)
this method create a Summarizer object for each tenant and call accumulate() method to
accumulate usage statistics
|
Modifier and Type | Method and Description |
---|---|
String |
CustomMeteringService.retrieveUsage(String duration,
String measurement)
method to retrieve usage
|
Modifier and Type | Method and Description |
---|---|
static void |
PublisherUtils.publish(BandwidthUsage usage)
this method get the event payload, construct the SOAP envelop and call the publish method in
EventBrokerService.
|
static String |
PublisherUtils.updateServerName(int tenantId)
method to update server name
|
Copyright © 2020 WSO2. All rights reserved.