Package org.apache.stratos.usage.beans

Examples of org.apache.stratos.usage.beans.BandwidthStatistics


            dataContext.addDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY,
                    currentTenantCapacity);
            dataContext.addDataLong(ThrottlingDataEntryConstants.TENANT_HISTORY_CAPACITY,
                    historyTenantCapacity);
            //Assigning registry bandwidths
            BandwidthStatistics totalRgistryBW=usage.getTotalRegistryBandwidth();
            dataContext.addDataLong(ThrottlingDataEntryConstants.REGISTRY_INCOMING_BANDWIDTH,
                    totalRgistryBW.getIncomingBandwidth());
            dataContext.addDataLong(ThrottlingDataEntryConstants.REGISTRY_OUTGOING_BANDWIDTH,
                    totalRgistryBW.getOutgoingBandwidth());

            //Assigning service bandwidths
            BandwidthStatistics serviceBWStatistic=usage.getTotalServiceBandwidth();
            dataContext.addDataLong(ThrottlingDataEntryConstants.SERVICE_INCOMING_BANDWIDTH,
                    serviceBWStatistic.getIncomingBandwidth());
            dataContext.addDataLong(ThrottlingDataEntryConstants.SERVICE_OUTGOING_BANDWIDTH,
                    serviceBWStatistic.getOutgoingBandwidth());
           
            //Assigning webapp bandwidths
            BandwidthStatistics webappBWStatistic = usage.getTotalWebappBandwidth();
            dataContext.addDataLong(ThrottlingDataEntryConstants.WEBAPP_INCOMING_BANDWIDTH,
                    webappBWStatistic.getIncomingBandwidth());
            dataContext.addDataLong(ThrottlingDataEntryConstants.WEBAPP_OUTGOING_BANDWIDTH,
                    webappBWStatistic.getOutgoingBandwidth());
           
            //Assigning service requests and response
            RequestStatistics requestStat = usage.getTotalRequestStatistics();
            dataContext.addDataLong(ThrottlingDataEntryConstants.SERVICE_REQUEST_COUNT,
                    requestStat.getRequestCount());
View Full Code Here

TOP

Related Classes of org.apache.stratos.usage.beans.BandwidthStatistics

Copyright © 2018 www.massapicom. 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.