Package com.sun.appserv.management.j2ee

Examples of com.sun.appserv.management.j2ee.WebServiceEndpoint


        Set<WebServiceEndpoint> wsSet
                = AMXUtil.getWebServiceMgr().getWebServiceEndpointSet(webServiceKey, server);
       
        if (!wsSet.isEmpty()){  // should be only one.
            Iterator it = wsSet.iterator();
            WebServiceEndpoint ws = (WebServiceEndpoint) it.next();
            if (ws != null){
                long lastResetTime = ws.getLastResetTime();
                Date date = new Date(lastResetTime);
                DateFormat dateFormat = DateFormat.getDateTimeInstance(
                    DateFormat.MEDIUM, DateFormat.MEDIUM,
                    handlerCtx.getFacesContext().getViewRoot().getLocale());
                handlerCtx.setOutputValue("Time", dateFormat.format(date));
View Full Code Here


  ArrayList serverRootList = new ArrayList();
        Set<WebServiceEndpoint> wsSet
                = AMXUtil.getWebServiceMgr().getWebServiceEndpointSet(webServiceKey, server);
        Iterator it = wsSet.iterator();
        while (it.hasNext()){
            WebServiceEndpoint wsEndpoint =  (WebServiceEndpoint) it.next();
            WebServiceEndpointMonitor wsMonitor = (WebServiceEndpointMonitor)wsEndpoint.getMonitoringPeer();
            if (wsMonitor != null){
                String serverRoot = wsMonitor.getServerRootMonitor().getName();
                serverRootList.add(serverRoot);
            }
        }
View Full Code Here

        ArrayList serverRootList = new ArrayList();
        Set<WebServiceEndpoint> wsSet
                = AMXUtil.getWebServiceMgr().getWebServiceEndpointSet(webServiceKey, selectedServer);
        Iterator it = wsSet.iterator();
        while (it.hasNext()){
            WebServiceEndpoint wsEndpoint =  (WebServiceEndpoint) it.next();
            WebServiceEndpointMonitor wsMonitor = (WebServiceEndpointMonitor)wsEndpoint.getMonitoringPeer();
            if (wsMonitor != null){
                String serverRoot = wsMonitor.getServerRootMonitor().getName();
                wsMonitorsList.add(wsMonitor);
                serverRootList.add(serverRoot);
            }
View Full Code Here

        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){
                statsMbean = wsMonitor.getWebServiceEndpointAggregateStats();
            }
        }
       
View Full Code Here

        Set<WebServiceEndpoint> wsSet
                = AMXUtil.getWebServiceMgr().getWebServiceEndpointSet(webServiceKey, server);
        MessageTrace[] msgs = null;
        if (!wsSet.isEmpty()){  // should be only one.
            Iterator it = wsSet.iterator();
            WebServiceEndpoint ws = (WebServiceEndpoint) it.next();
            msgs = ws.getMessagesInHistory();
        }
       
        MessageTrace mt = null;
        if (msgs != null) {
            for (int i=0; i < msgs.length; i++) {
View Full Code Here

        Set<WebServiceEndpoint> wsSet
                = AMXUtil.getWebServiceMgr().getWebServiceEndpointSet(webServiceKey, server);
        MessageTrace[] msgs = null;
        if (!wsSet.isEmpty()){  // should be only one.
            Iterator it = wsSet.iterator();
            WebServiceEndpoint ws = (WebServiceEndpoint) it.next();
            msgs = ws.getMessagesInHistory();
        }

        List dataList = new ArrayList();
        if (msgs != null) {
            for (int i=0; i < msgs.length; i++) {
View Full Code Here

        try{
            WebServiceMgr wsm = AMXUtil.getWebServiceMgr();
            Set endpointSet = wsm.getWebServiceEndpointSet(webServiceKey, server);
            if (!endpointSet.isEmpty()){  // should be only one.
                Iterator it = endpointSet.iterator();
                WebServiceEndpoint endpoint = (WebServiceEndpoint) it.next();
                endpoint.resetStats();
            }
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

            getDomainRoot().getWebServiceMgr().getWebServiceEndpointSet(key,
            "server");
            if ( epSet != null) {
                System.out.println("Found " + epSet.size() + " for " + key);
                for(Iterator epItr = epSet.iterator(); epItr.hasNext();) {
                    WebServiceEndpoint ep = (WebServiceEndpoint) epItr.next();
                    System.out.println("Found " +  ep.getName() );
                    WebServiceEndpointMonitor epm = (WebServiceEndpointMonitor)
                    ep.getMonitoringPeer();
                    System.out.println("Monitoing peer for  " +  ep.getName() +
                    " is " + epm);

                }
            }
        }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.j2ee.WebServiceEndpoint

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.