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

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


    /** Returns the statistics for a load-balanced server instance
     * @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


    /** Returns average response time in milliseconds
     * @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());
View Full Code Here

    /** Returns average response time in milliseconds
     * @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());
View Full Code Here

   
    /** Returns the number of failover requests
     * @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());
View Full Code Here

   
    /** Returns the number of error requests
     * @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());
View Full Code Here

   
    /** Returns the number of active requests
     * @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());
View Full Code Here

    /** Returns the number of total requests
     * @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());
View Full Code Here

    /** Returns the number of times all idempotent
     * urls in this application are accessed
     * @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());
View Full Code Here

   
    /** Returns the statistics for a load-balanced server instance
     * @return an array of {@link Statistic}    
     */
    public Statistic[] getStatistics() {
        LoadBalancerStatsInterface lbstats = lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
        Statistic[] statArr1 = new Statistic[3];
        StringStatistic stat11 = new StringStatisticImpl("Health", "Instance Health", "state of the server", 0, 0, "");
        CountStatistic stat21 = new CountStatisticImpl("NumberOfActiveRequests", "Number Of Active Requests", "count", 0, 0, 0);
        CountStatistic stat31 = new CountStatisticImpl("NumberOfTotalRequests", "Number Of Total Requests", "count", 0, 0, 0);
        statArr1[0]=stat11;
        statArr1[1]=stat21;
        statArr1[2]=stat31;
        if(lbstats == null)
            return statArr1;
        ClusterStats [] cstats = lbstats.getClusterStats();
        for(ClusterStats cstat :cstats){
            for(InstanceStats istat : cstat.getInstanceStats()){
                if(!istat.getId().equals(instanceName))
                    continue;
                    Statistic[] statArr = new Statistic[3];
View Full Code Here

            }else if(lbName == null){
               
            }
            LbMonitoringHelper lbMonitoringHelper = new LbMonitoringHelper(ctx, configName, lbName);
            String xml = lbMonitoringHelper.getMonitoringXml();
            LoadBalancerStatsInterface lbstats = LoadBalancerStats.readNoEntityResolver(new ByteArrayInputStream(xml.getBytes()));
            _logger.log(Level.INFO, _sMgr.getString(
                    "http_lb_admin.GetStats",  lbName));
            return lbstats;
        } catch (Exception e) {
            String msg = _strMgr.getString("LbGetStatsFailed",
View Full Code Here

TOP

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

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.