Package org.apache.stratos.usage.beans

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


                    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());
            dataContext.addDataLong(ThrottlingDataEntryConstants.SERVICE_RESPONSE_COUNT,
                    requestStat.getResponseCount());
           
            //Get number of users
            int usersCount = usage.getNumberOfUsers();
            dataContext.addDataInt(ThrottlingDataEntryConstants.USERS_COUNT, usersCount);
View Full Code Here

TOP

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

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.