Class CMListener

  • All Implemented Interfaces:
    ServiceListener

    public class CMListener
    extends Object
    implements ServiceListener
    CMListener implements ServiceListener interface. The listener is registered for event notification via
     _smsapi.addListener()
     
    CMListener is added by ConfigManagerUMS (a single listener at the root of the directory tree.) Event notification callsback the method
     configChanged
     
    . configChanged deletes the modified subtree from the ConfigManager cache.
    • Constructor Detail

      • CMListener

        public CMListener()
    • Method Detail

      • schemaChanged

        public void schemaChanged​(String serviceName,
                                  String version)
        Description copied from interface: ServiceListener
        This method will be invoked when a service's schema has been changed.
        Specified by:
        schemaChanged in interface ServiceListener
        Parameters:
        serviceName - name of the service
        version - version of the service
      • globalConfigChanged

        public void globalConfigChanged​(String serviceName,
                                        String version,
                                        String groupName,
                                        String componentName,
                                        int type)
        This method is called back by SM when a service's global configuration data has been changed. The parameter groupName denote the name of the configuration grouping (e.g. default) and componentName denotes the service's sub-component that changed.
        Specified by:
        globalConfigChanged in interface ServiceListener
        Parameters:
        serviceName - name of the service.
        version - version of the service.
        groupName - name of the configuration grouping.
        componentName - name of the service component that changed.
        type - change type, i.e. ADDED, REMOVED or MODIFIED.
      • organizationConfigChanged

        public void organizationConfigChanged​(String service,
                                              String version,
                                              String org,
                                              String groupname,
                                              String componentName,
                                              int type)
        This method is called back by SM when a service's organization configuration data has been changed. The parameters org, groupname and componentName denotes the organization name, configuration grouping name and service's sub-component that are changed respectively.
        Specified by:
        organizationConfigChanged in interface ServiceListener
        Parameters:
        service - name of the service.
        version - version of the service.
        org - organization name as DN.
        groupname - name of the configuration grouping.
        componentName - the name of the service components that changed.
        type - change type, i.e. ADDED, REMOVED or MODIFIED.