Package org.jvnet.glassfish.comms.admin.monitor.registry.spi.extensions

Examples of org.jvnet.glassfish.comms.admin.monitor.registry.spi.extensions.SipMonitoringManagerImpl


    public MonitoringAdapter() {
    }   
   
    public void startup() {
        final List<Layer> layers = LayerHandler.getInstance().getLayers();
        SipMonitoringManagerImpl smmi = SipMonitoringManagerImpl.getInstance();
        smmi.register();
       
        for (Layer layer : layers) {
            if (layer instanceof DialogManager) {
                if (log.isLoggable(Level.FINE)) {
                    log.fine("Initializing Session Manager Stats");
                }
                smmi.enableSipStats(SipMonitoring.SESSION_MANAGER, layer, MonitoringLevel.HIGH);
            } else if (layer instanceof NetworkManager) {
                if (log.isLoggable(Level.FINE)) {
                    log.fine("Initializing Network Manager Stats");
                }
                smmi.enableSipStats(SipMonitoring.NETWORK_MANAGER, layer, MonitoringLevel.HIGH);
            } else if (layer instanceof TransactionManager) {
                if (log.isLoggable(Level.FINE)) {
                    log.fine("Initializing Transaction Manager Stats");
                }
                smmi.enableSipStats(SipMonitoring.TRANSACTION_MANAGER, layer, MonitoringLevel.HIGH);
            } else if (layer instanceof OverloadProtectionManager) {
                if (log.isLoggable(Level.FINE)) {
                    log.fine("Initializing Overload Protection Manager Stats");
                }
                smmi.enableSipStats(SipMonitoring.OVERLOAD_PROTECTION_MANAGER, layer, MonitoringLevel.HIGH);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.admin.monitor.registry.spi.extensions.SipMonitoringManagerImpl

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.