Class 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
    • Constructor Detail

      • JMXMonitoringService

        public JMXMonitoringService()
    • Method Detail

      • postConstruct

        @PostConstruct
        public void postConstruct()
      • 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