FileDocCategorySizeDatePackage
WebServiceEndpointStatsImpl.javaAPI DocGlassfish v2 API8052Fri May 04 22:24:46 BST 2007com.sun.enterprise.admin.wsmgmt.stats.impl

WebServiceEndpointStatsImpl

public class WebServiceEndpointStatsImpl extends StatsImpl implements com.sun.appserv.management.monitor.statistics.WebServiceEndpointAggregateStats
A Class for providing stats for Web Service Endpoint.
author
Satish Viswanatham

Fields Summary
private com.sun.enterprise.admin.wsmgmt.stats.spi.WebServiceEndpointStatsProvider
delegate
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
averageResponseTime
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
responseTime
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
minResponseTime
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
maxResponseTime
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
totalFaults
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
totalSuccesses
private com.sun.appserv.management.j2ee.statistics.NumberStatisticImpl
throughput
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
totalAuthFailures
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
totalAuthSuccesses
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
requestSize
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
responseSize
private com.sun.appserv.management.j2ee.statistics.StringStatisticImpl
faultCode
private com.sun.appserv.management.j2ee.statistics.StringStatisticImpl
faultString
private com.sun.appserv.management.j2ee.statistics.StringStatisticImpl
faultActor
private com.sun.appserv.management.j2ee.statistics.StringStatisticImpl
clientHost
private com.sun.appserv.management.j2ee.statistics.StringStatisticImpl
clientUser
private static final com.sun.enterprise.util.i18n.StringManager
_stringMgr
private static String
DEFAULT_TIME_UNIT
private static String
DEFAULT_SIZE_UNIT
Constructors Summary
public WebServiceEndpointStatsImpl(com.sun.enterprise.admin.wsmgmt.stats.spi.WebServiceEndpointStatsProvider delegate)

    

     
         
        this.delegate = delegate;

        initialize();
    
Methods Summary
public javax.management.j2ee.statistics.CountStatisticgetAverageResponseTime()

        averageResponseTime.setCount(delegate.getAverageResponseTime());
        return (CountStatistic) averageResponseTime.modifiableView();
    
public javax.management.j2ee.statistics.CountStatisticgetMaxResponseTime()

        maxResponseTime.setCount(delegate.getMaxResponseTime());
        return (CountStatistic) maxResponseTime.modifiableView();
    
public javax.management.j2ee.statistics.CountStatisticgetMinResponseTime()

        minResponseTime.setCount(delegate.getMinResponseTime());
        return (CountStatistic) minResponseTime.modifiableView();
    
public javax.management.j2ee.statistics.CountStatisticgetResponseTime()

        responseTime.setCount(delegate.getResponseTime());
        return (CountStatistic) responseTime.modifiableView();
    
public com.sun.appserv.management.j2ee.statistics.NumberStatisticgetThroughput()

        throughput.setNumber(new Double(delegate.getThroughput()));
        return (NumberStatistic) throughput;
    
public javax.management.j2ee.statistics.CountStatisticgetTotalAuthFailures()

        totalAuthFailures.setCount(delegate.getTotalAuthFailures());
        return (CountStatistic) totalAuthFailures.modifiableView();
    
public javax.management.j2ee.statistics.CountStatisticgetTotalAuthSuccesses()

        totalAuthSuccesses.setCount(delegate.getTotalAuthSuccesses());
        return (CountStatistic) totalAuthSuccesses.modifiableView();
    
public javax.management.j2ee.statistics.CountStatisticgetTotalFaults()

	    totalFaults.setCount(delegate.getTotalFailures());
        return (CountStatistic) totalFaults.modifiableView();
    
public javax.management.j2ee.statistics.CountStatisticgetTotalNumSuccess()

        totalSuccesses.setCount(delegate.getTotalSuccesses());
        return (CountStatistic) totalSuccesses.modifiableView();
    
protected voidinitialize()

       super.initialize(
       "com.sun.appserv.management.monitor.statistics.WebServiceEndpointAggregateStats");

        averageResponseTime = new MutableCountStatisticImpl(
            new CountStatisticImpl("AverageResponseTime", DEFAULT_TIME_UNIT));
        minResponseTime = new MutableCountStatisticImpl(
            new CountStatisticImpl("MinResponseTime", DEFAULT_TIME_UNIT));
        maxResponseTime = new MutableCountStatisticImpl(
            new CountStatisticImpl("MaxResponseTime", DEFAULT_TIME_UNIT));
        responseTime = new MutableCountStatisticImpl(
            new CountStatisticImpl("ResponseTime", DEFAULT_TIME_UNIT));
        totalFaults = new MutableCountStatisticImpl(
            new CountStatisticImpl("TotalFaults"));
        totalSuccesses = new MutableCountStatisticImpl(
            new CountStatisticImpl("TotalNumSuccess"));
        totalAuthFailures = new MutableCountStatisticImpl(
            new CountStatisticImpl("TotalAuthFailures"));
        totalAuthSuccesses = new MutableCountStatisticImpl(
            new CountStatisticImpl("TotalAuthSuccesses"));
        long t = System.currentTimeMillis();
        String description = _stringMgr.getString("throughput.description");
        throughput = new NumberStatisticImpl(
            "Throughput", description, "Requests Per Second", t, t,
            new Double(0.0));
        requestSize = new MutableCountStatisticImpl(
            new CountStatisticImpl("RequestSize", DEFAULT_SIZE_UNIT));
        responseSize = new MutableCountStatisticImpl(
            new CountStatisticImpl("ResponseSize", DEFAULT_SIZE_UNIT));