Package com.sun.enterprise.admin.monitor.stats.lb

Examples of com.sun.enterprise.admin.monitor.stats.lb.InstanceStatsInterface


     * @return an array of {@link Statistic}    
     */
    public Statistic[] getStatistics() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface instance =  getInstanceStats(lbstats);
        return createStats(instance);
    }
View Full Code Here


     * @return an instance of {@link TimeStatistic}    
     */
    public TimeStatistic getResponseTime() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface istat =  getInstanceStats(lbstats);
        if(istat!=null){
            long avgRespTime = Long.parseLong(
                    istat.getApplicationStatsAverageResponseTime());
            long maxRespTime = Long.parseLong(
                    istat.getApplicationStatsMaxResponseTime());
            long minRespTime = Long.parseLong(
                    istat.getApplicationStatsMinResponseTime());
            long totalRequests = Long.parseLong(
                    istat.getApplicationStatsNumTotalRequests());
            long sampleTime = System.currentTimeMillis();
            return createResponseTimeStat(maxRespTime,
            totalRequests, sampleTime,
            minRespTime, avgRespTime);
        }
View Full Code Here

     * @return an instance of {@link TimeStatistic}    
     */
    public CountStatistic getAverageResponseTime() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface istat =  getInstanceStats(lbstats);
        if(istat!=null){
            long avgRespTime = Long.parseLong(
                    istat.getApplicationStatsAverageResponseTime());
            long sampleTime = System.currentTimeMillis();
            return createAverageRespTimeStat(sampleTime,avgRespTime);
        }
        return null;
    }
View Full Code Here

     * @return an instance of {@link CountStatistic}    
     */
    public CountStatistic getFailoverReqCount() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface istat =  getInstanceStats(lbstats);
        if(istat!=null){
            long time = Long.parseLong(
                    istat.getApplicationStatsNumFailoverRequests());
            long sampleTime = System.currentTimeMillis();
            return createFailoverReqCountStat(sampleTime,time);
        }
        return null;
    }
View Full Code Here

     * @return an instance of {@link CountStatistic}    
     */
    public CountStatistic getErrorRequestCount() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface istat =  getInstanceStats(lbstats);
        if(istat!=null){
            long time = Long.parseLong(
                    istat.getApplicationStatsNumErrorRequests());
            long sampleTime = System.currentTimeMillis();
            return createErrorRequestCountStat(sampleTime,time);
        }
        return null;
    }
View Full Code Here

     * @return an instance of {@link CountStatistic}    
     */
    public CountStatistic getActiveRequestCount() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface istat =  getInstanceStats(lbstats);
        if(istat!=null){
            long time = Long.parseLong(
                    istat.getApplicationStatsNumActiveRequests());
            long sampleTime = System.currentTimeMillis();
            return createActiveRequestCountStat(sampleTime,time);
        }
        return null;
    }
View Full Code Here

     * @return an instance of {@link CountStatistic}    
     */
    public CountStatistic getTotalRequestCount() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface istat =  getInstanceStats(lbstats);
        if(istat!=null){
            long time = Long.parseLong(
                    istat.getApplicationStatsNumTotalRequests());
            long sampleTime = System.currentTimeMillis();
            return createTotalRequestCountStat(sampleTime,time);
        }
        return null;
    }
View Full Code Here

     * @return an instance of {@link CountStatistic}    
     */
    public CountStatistic getIdempotentUrlAccessCount() {
        LoadBalancerStatsInterface lbstats =
                lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        InstanceStatsInterface istat =  getInstanceStats(lbstats);
        if(istat!=null){
            long time = Long.parseLong(
                    istat.getApplicationStatsNumIdempotentUrlRequests());
            long sampleTime = System.currentTimeMillis();
            return createIdempotentUrlAccessCountStat(sampleTime,time);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.monitor.stats.lb.InstanceStatsInterface

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.