Class DefaultMonitoringDataProvider

java.lang.Object
org.jppf.management.diagnostics.provider.MonitoringDataProvider
org.jppf.management.diagnostics.provider.DefaultMonitoringDataProvider

public class DefaultMonitoringDataProvider extends MonitoringDataProvider
This class is the built-in JPPF monitoring data provider.
Author:
Laurent Cohen
  • Constructor Details

    • DefaultMonitoringDataProvider

      public DefaultMonitoringDataProvider()
  • Method Details

    • defineProperties

      public void defineProperties()
      Description copied from class: MonitoringDataProvider
      Perform the definition of the properties supplied by this provider. This method is called extactly once in both producer (where the data comes from) and consumer (where the data is rendered, e.g. admin console) sides.
      Specified by:
      defineProperties in class MonitoringDataProvider
    • init

      public void init()
      Description copied from class: MonitoringDataProvider
      Perform the initialization of this provider. This method is called exactly once on the producer (where the data comes from) side only.
      Specified by:
      init in class MonitoringDataProvider
    • getValues

      public TypedProperties getValues()
      Description copied from class: MonitoringDataProvider
      Get the values for the defined properties.

      This method is expected to be called repeatedly on the producer side (where the data comes from).

      Specified by:
      getValues in class MonitoringDataProvider
      Returns:
      the values as a TypedProperties object, mapping the properties names to their value as a String.
    • getLocalizationBase

      protected String getLocalizationBase()
      Description copied from class: MonitoringDataProvider
      Get the base path to the localization bundles for this provider. For exemple, if the base path is mypackage.MyProps, then the packahe mypackage should at least contain the file MyProps.properties, along with other localized bundles such as MyProps_fr.properties, MyProps_en_GB.properties, etc.

      This default implementation returns null. It should be overriden to provide a different value.

      Overrides:
      getLocalizationBase in class MonitoringDataProvider
      Returns:
      the base path to the localization bundles for this provider.
      See Also: