Class MonitoringBootstrap

  • All Implemented Interfaces:
    com.sun.enterprise.module.ModuleLifecycleListener, EventListener, org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, ConfigListener

    @Service
    @RunLevel(1)
    public class MonitoringBootstrap
    extends Object
    implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, EventListener, com.sun.enterprise.module.ModuleLifecycleListener, ConfigListener
    Starts AMX monitoring
    Author:
    abbagani
    • Constructor Detail

      • MonitoringBootstrap

        public MonitoringBootstrap()
    • Method Detail

      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • preDestroy

        public void preDestroy()
        Specified by:
        preDestroy in interface org.glassfish.hk2.api.PreDestroy
      • setStatsProviderManagerDelegate

        public void setStatsProviderManagerDelegate()
      • moduleResolved

        public void moduleResolved​(com.sun.enterprise.module.HK2Module module)
        Specified by:
        moduleResolved in interface com.sun.enterprise.module.ModuleLifecycleListener
      • moduleStarted

        public void moduleStarted​(com.sun.enterprise.module.HK2Module module)
        Specified by:
        moduleStarted in interface com.sun.enterprise.module.ModuleLifecycleListener
      • registerProbes

        public void registerProbes​(String appName,
                                   File appDir,
                                   ClassLoader cl)
        An application that has probes can be registered.
        Parameters:
        appName - application-name
        appDir - directory where application bits are present.
        cl - classloader that is used to load application files.
      • moduleStopped

        public void moduleStopped​(com.sun.enterprise.module.HK2Module module)
        Specified by:
        moduleStopped in interface com.sun.enterprise.module.ModuleLifecycleListener
      • moduleInstalled

        public void moduleInstalled​(com.sun.enterprise.module.HK2Module module)
        Specified by:
        moduleInstalled in interface com.sun.enterprise.module.ModuleLifecycleListener
      • moduleUpdated

        public void moduleUpdated​(com.sun.enterprise.module.HK2Module module)
        Specified by:
        moduleUpdated in interface com.sun.enterprise.module.ModuleLifecycleListener
      • handleFutureStatsProviders

        public void handleFutureStatsProviders()
      • changed

        public UnprocessedChangeEvents changed​(PropertyChangeEvent[] propertyChangeEvents)
        Description copied from interface: ConfigListener
        Notification that @Configured objects that were injected have changed
        Specified by:
        changed in interface ConfigListener
        Parameters:
        propertyChangeEvents - list of changes
        Returns:
        the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully