Package fish.payara.jmx.monitoring
Class JMXMonitoringService
- java.lang.Object
-
- fish.payara.jmx.monitoring.JMXMonitoringService
-
- All Implemented Interfaces:
EventListener
@Service(name="payara-monitoring") @RunLevel(10) public class JMXMonitoringService extends Object implements EventListener
Service which monitors a set of MBeans and their attributes while logging the data as a series of key-value pairs.- Since:
- 4.1.1.163
- Author:
- savage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
EventListener.Event<T>
-
-
Constructor Summary
Constructors Constructor Description JMXMonitoringService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bootstrapMonitoringService()
Bootstraps the monitoring service.void
bootstrapNotifierList()
Starts notifiers that are enabled with the monitoring servicevoid
event(EventListener.Event event)
Process a Glassfish/Payara eventSet<String>
getEnabledNotifiers()
Returns all notifiers configured with the monitoring serviceLocalStringManagerImpl
getLocalStringManager()
void
postConstruct()
void
setEnabled(Boolean enabled)
Sets the service to be enabled/disabled.
-
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct()
-
event
public void event(EventListener.Event event)
Description copied from interface:EventListener
Process a Glassfish/Payara event- Specified by:
event
in interfaceEventListener
-
bootstrapMonitoringService
public void bootstrapMonitoringService()
Bootstraps the monitoring service. Schedules the AMXBoot class to execute if AMX is enabled. Schedules the JMXMonitoringFormatter to execute at a specified fixed rate if enabled in the configuration.
-
bootstrapNotifierList
public void bootstrapNotifierList()
Starts notifiers that are enabled with the monitoring service- Since:
- 4.1.2.174
-
getEnabledNotifiers
public Set<String> getEnabledNotifiers()
Returns all notifiers configured with the monitoring service- Returns:
- Since:
- 4.1.2.174
-
setEnabled
public void setEnabled(Boolean enabled)
Sets the service to be enabled/disabled.- Parameters:
enabled
- If true will reboot the monitoring service
-
getLocalStringManager
public LocalStringManagerImpl getLocalStringManager()
-
-