Package org.glassfish.admin.monitor
Class MonitoringBootstrap
- java.lang.Object
-
- org.glassfish.admin.monitor.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
EventListener.Event<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected ProbeClientMediatorpcmprotected ProbeProviderFactoryprobeProviderFactory
-
Constructor Summary
Constructors Constructor Description MonitoringBootstrap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnprocessedChangeEventschanged(PropertyChangeEvent[] propertyChangeEvents)Notification that @Configured objects that were injected have changedvoidevent(EventListener.Event event)Process a Glassfish/Payara eventvoidhandleFutureStatsProviders()voidmoduleInstalled(com.sun.enterprise.module.HK2Module module)voidmoduleResolved(com.sun.enterprise.module.HK2Module module)voidmoduleStarted(com.sun.enterprise.module.HK2Module module)voidmoduleStopped(com.sun.enterprise.module.HK2Module module)voidmoduleUpdated(com.sun.enterprise.module.HK2Module module)voidpostConstruct()voidpreDestroy()voidregisterProbes(String appName, File appDir, ClassLoader cl)An application that has probes can be registered.voidsetStatsProviderManagerDelegate()
-
-
-
Field Detail
-
probeProviderFactory
@Inject protected ProbeProviderFactory probeProviderFactory
-
pcm
@Inject protected ProbeClientMediator pcm
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
preDestroy
public void preDestroy()
- Specified by:
preDestroyin interfaceorg.glassfish.hk2.api.PreDestroy
-
event
public void event(EventListener.Event event)
Description copied from interface:EventListenerProcess a Glassfish/Payara event- Specified by:
eventin interfaceEventListener
-
setStatsProviderManagerDelegate
public void setStatsProviderManagerDelegate()
-
moduleResolved
public void moduleResolved(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleResolvedin interfacecom.sun.enterprise.module.ModuleLifecycleListener
-
moduleStarted
public void moduleStarted(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleStartedin interfacecom.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-nameappDir- 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:
moduleStoppedin interfacecom.sun.enterprise.module.ModuleLifecycleListener
-
moduleInstalled
public void moduleInstalled(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleInstalledin interfacecom.sun.enterprise.module.ModuleLifecycleListener
-
moduleUpdated
public void moduleUpdated(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleUpdatedin interfacecom.sun.enterprise.module.ModuleLifecycleListener
-
handleFutureStatsProviders
public void handleFutureStatsProviders()
-
changed
public UnprocessedChangeEvents changed(PropertyChangeEvent[] propertyChangeEvents)
Description copied from interface:ConfigListenerNotification that @Configured objects that were injected have changed- Specified by:
changedin interfaceConfigListener- Parameters:
propertyChangeEvents- list of changes- Returns:
- the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully
-
-