Examples of persistUsage()


Examples of org.wso2.carbon.usage.agent.api.SystemMeteringAgent.persistUsage()

            int tenantId = tenant.getId();
            long incomingBw = getOldIncomingRegistryBandwidth(yearMonth, tenantId);
            long outgoingBw = getOldOutgoingRegistryBandwidth(yearMonth, tenantId);

            if (incomingBw != 0) {
                meteringAgent.persistUsage(tenantId, yearMonth,
                        UsageConstants.REGISTRY_INCOMING_BW, incomingBw + "");
            }
            if (outgoingBw != 0) {
                meteringAgent.persistUsage(tenantId, yearMonth,
                        UsageConstants.REGISTRY_OUTGOING_BW, outgoingBw + "");
View Full Code Here

Examples of org.wso2.carbon.usage.agent.api.SystemMeteringAgent.persistUsage()

            if (incomingBw != 0) {
                meteringAgent.persistUsage(tenantId, yearMonth,
                        UsageConstants.REGISTRY_INCOMING_BW, incomingBw + "");
            }
            if (outgoingBw != 0) {
                meteringAgent.persistUsage(tenantId, yearMonth,
                        UsageConstants.REGISTRY_OUTGOING_BW, outgoingBw + "");
            }
            log.info("Migrating registry bandwidth data to the new data model. tenant id: " +
                    tenantId + ".");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.