Examples of WebServiceEndpointAggregateStats


Examples of com.sun.appserv.management.monitor.statistics.WebServiceEndpointAggregateStats

    public static void getWebServiceEndpointAggregateStatsMBean(HandlerContext handlerCtx) {
        String webServiceKey =(String)handlerCtx.getInputValue("WebServiceKey");
        String server = (String)handlerCtx.getInputValue("Server");
        Set<WebServiceEndpoint> wsSet
                = AMXUtil.getWebServiceMgr().getWebServiceEndpointSet(webServiceKey, server);
        WebServiceEndpointAggregateStats statsMbean = null;
        if (!wsSet.isEmpty()){  // should be only one.
            Iterator it = wsSet.iterator();
            WebServiceEndpoint ws = (WebServiceEndpoint) it.next();
            WebServiceEndpointMonitor wsMonitor = (WebServiceEndpointMonitor)ws.getMonitoringPeer();
            if (wsMonitor != null){
View Full Code Here

Examples of com.sun.appserv.management.monitor.statistics.WebServiceEndpointAggregateStats

       for( final WebServiceEndpointMonitor m : ms )
       {
            System.out.println("\n \n Name of web service is " + m.getName());

            final WebServiceEndpointAggregateStats      s   =
                    m.getWebServiceEndpointAggregateStats();

            // verify that we can get each Statistic;
            // there was a problem at one time


            final CountStatistic r1 = s.getTotalFaults();
            assert( r1 != null );
            System.out.println(" total num fault is "+ r1.getCount());

            final CountStatistic r2 = s.getTotalNumSuccess() ;
            assert( r2 != null );
            System.out.println(" total num success is "+ r2.getCount());

            final CountStatistic r3 = s.getAverageResponseTime();
            assert( r3 != null );
            System.out.println("avg resp is "+ r3.getCount());

            final NumberStatistic c1 = s.getThroughput() ;
            assert( c1 != null );
            System.out.println(" through put is "+ c1.getCurrent());

            final CountStatistic c2 = s.getTotalAuthFailures();
            assert( c2 != null );
            System.out.println(" total num auth success is "+ c2.getCount());

            final CountStatistic c3 = s.getTotalAuthSuccesses();
            assert( c3 != null );
            System.out.println(" total num auth failure is "+ c3.getCount());

       }
    }   
View Full Code Here

Examples of com.sun.appserv.management.monitor.statistics.WebServiceEndpointAggregateStats

        while ( itr.hasNext() )
        {
                WebServiceEndpointMonitor m = (WebServiceEndpointMonitor)
                itr.next();

          final WebServiceEndpointAggregateStats    s  =
                    m.getWebServiceEndpointAggregateStats();
         
          // verify that we can get each Statistic;
                // there was a problem at one time

                final CountStatistic r1  = s.getTotalFaults();
                assert( r1 != null );
     
                final CountStatistic r2  = s.getTotalNumSuccess() ;
                assert( r2 != null );
     
                //final AverageRangeStatistic r3 = s.getResponseTime();
                //assert( r3 != null );

                final NumberStatistic c1 = s.getThroughput() ;
                assert( c1 != null );
     
                final CountStatistic c2 = s.getTotalAuthFailures();
                assert( c2 != null );
     
                final CountStatistic c3 = s.getTotalAuthSuccesses();
                assert( c3 != null );
     
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.