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 ProbeClientMediator
pcm
protected ProbeProviderFactory
probeProviderFactory
-
Constructor Summary
Constructors Constructor Description MonitoringBootstrap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnprocessedChangeEvents
changed(PropertyChangeEvent[] propertyChangeEvents)
Notification that @Configured objects that were injected have changedvoid
event(EventListener.Event event)
Process a Glassfish/Payara eventvoid
handleFutureStatsProviders()
void
moduleInstalled(com.sun.enterprise.module.HK2Module module)
void
moduleResolved(com.sun.enterprise.module.HK2Module module)
void
moduleStarted(com.sun.enterprise.module.HK2Module module)
void
moduleStopped(com.sun.enterprise.module.HK2Module module)
void
moduleUpdated(com.sun.enterprise.module.HK2Module module)
void
postConstruct()
void
preDestroy()
void
registerProbes(String appName, File appDir, ClassLoader cl)
An application that has probes can be registered.void
setStatsProviderManagerDelegate()
-
-
-
Field Detail
-
probeProviderFactory
@Inject protected ProbeProviderFactory probeProviderFactory
-
pcm
@Inject protected ProbeClientMediator pcm
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
preDestroy
public void preDestroy()
- Specified by:
preDestroy
in interfaceorg.glassfish.hk2.api.PreDestroy
-
event
public void event(EventListener.Event event)
Description copied from interface:EventListener
Process a Glassfish/Payara event- Specified by:
event
in interfaceEventListener
-
setStatsProviderManagerDelegate
public void setStatsProviderManagerDelegate()
-
moduleResolved
public void moduleResolved(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleResolved
in interfacecom.sun.enterprise.module.ModuleLifecycleListener
-
moduleStarted
public void moduleStarted(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleStarted
in 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:
moduleStopped
in interfacecom.sun.enterprise.module.ModuleLifecycleListener
-
moduleInstalled
public void moduleInstalled(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleInstalled
in interfacecom.sun.enterprise.module.ModuleLifecycleListener
-
moduleUpdated
public void moduleUpdated(com.sun.enterprise.module.HK2Module module)
- Specified by:
moduleUpdated
in interfacecom.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 interfaceConfigListener
- Parameters:
propertyChangeEvents
- list of changes- Returns:
- the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully
-
-