FileDocCategorySizeDatePackage
ConnectorServiceMonitoringLevelListener.javaAPI DocGlassfish v2 API4678Fri May 04 22:35:18 BST 2007com.sun.enterprise.resource.monitor

ConnectorServiceMonitoringLevelListener

public class ConnectorServiceMonitoringLevelListener extends Object implements com.sun.enterprise.admin.monitor.registry.MonitoringLevelListener
Provides an implementation of the MonitoringLevelListener interface to receive callbacks from admin regarding change in the connector-service monitoring level. Though there are 3 monitoring levels defined by JSR77, we support only 2 levels - OFF and ON (HIGH/LOW). So essentially, HIGH and LOW for us is only ON
author
Sivakumar Thyagarajan
since
sjsas pe/se/ee 8.1

Fields Summary
private ConnectorPoolMonitoringLevelListener
ccpPoolMonitoringLevelListener_
private com.sun.enterprise.connectors.work.monitor.ConnectorWorkMonitoringLevelListener
cwMonitoringLevelListener_
Constructors Summary
public ConnectorServiceMonitoringLevelListener()

        ccpPoolMonitoringLevelListener_ = new ConnectorPoolMonitoringLevelListener();
        cwMonitoringLevelListener_ = new ConnectorWorkMonitoringLevelListener();
    
Methods Summary
public voidchangeLevel(com.sun.enterprise.admin.monitor.registry.MonitoringLevel from, com.sun.enterprise.admin.monitor.registry.MonitoringLevel to, javax.management.j2ee.statistics.Stats handback)
This is the callback invoked by the MonitoringRegistry on change in monitoring level

param
from - the past level
param
to - the new level
param
handback - the Stats object this listener was registered for
deprecated

public voidchangeLevel(com.sun.enterprise.admin.monitor.registry.MonitoringLevel from, com.sun.enterprise.admin.monitor.registry.MonitoringLevel to, com.sun.enterprise.admin.monitor.registry.MonitoredObjectType type)

        /*        
         * For backward compatability reasons: When connector connection pool or 
         * the JMS-Service module monitoring level is updated, the connector 
         * service's module monitoring level listener is updated and vice-versa.
         * 
         * Change levels in connector connection pools and
         * connector work management level listeners as well.
         */        
        ccpPoolMonitoringLevelListener_.changeLevel(from, to, type);
        cwMonitoringLevelListener_.changeLevel(from, to, type);
    
public voidsetLevel(com.sun.enterprise.admin.monitor.registry.MonitoringLevel level)

see
com.sun.enterprise.admin.monitor.registry.MonitoringLevelListener#setLevel(com.sun.enterprise.admin.monitor.registry.MonitoringLevel)
deprecated