Package com.sun.mfwk.agent.appserv.discovery

Examples of com.sun.mfwk.agent.appserv.discovery.ASMBeanDiscoveryService


       
        ConnectionRegistry registry = ConnectionRegistry.getInstance();
        MBeanServerConnection con =
                registry.getConnection(_serverName, _domainName);
       
        ASMBeanDiscoveryService discoveryService  =
                ASMBeanDiscoveryServiceFactory.getInstance().
                getASMBeanDiscoveryService(con);
       
        Set asMBeans =  discoveryService.discoverASMBeans(_serverName);

       
        //Get the config mbean for Cluster from the DAS Server instance
        //Ideally, we should instrument CMM object for Cluster on registration
        //event from DAS. Somehow, we are not getting an event from DAS for
        //Cluster mbean registration.
        MBeanServerConnection dasConn;
        try {
           dasConn = registry.getConnection(Constants.ADMIN_SERVER_NAME, _domainName);
        } catch (Exception e) {
           dasConn = null;
           Utils.log(Level.INFO, "Not able to get hold of DAS Connection. Not instrumenting Cluster objects");
        }
       
        if(dasConn != null) {
           ASMBeanDiscoveryService dasDiscoveryService =
              ASMBeanDiscoveryServiceFactory.getInstance().
                 getASMBeanDiscoveryService(dasConn);

           asMBeans.addAll(dasDiscoveryService.discoverClusterMBeans());
        }
        return asMBeans; 
    }
View Full Code Here


            MBeanServerConnection connection = registry.getConnection(server, domain);

            ASMBeanDiscoveryServiceFactory dicoveryServiceFactory =
                ASMBeanDiscoveryServiceFactory.getInstance();

            ASMBeanDiscoveryService discoveryService =
                    dicoveryServiceFactory.getASMBeanDiscoveryService(connection);
            Set asMbeans = discoveryService.discoverASMBeans(objectName);
            mediator.load(asMbeans);

        } catch(Exception e){
            if(logger != null){
                logger.log(Level.SEVERE, "Error while loading AS mbeans", e);
View Full Code Here

TOP

Related Classes of com.sun.mfwk.agent.appserv.discovery.ASMBeanDiscoveryService

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.