Class DefaultMonitoringDataProvider
java.lang.Object
org.jppf.management.diagnostics.provider.MonitoringDataProvider
org.jppf.management.diagnostics.provider.DefaultMonitoringDataProvider
This class is the built-in JPPF monitoring data provider.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jppf.management.diagnostics.provider.MonitoringDataProvider
getConverters, getProperties, getProperty, removeProperty, removeProperty, setBooleanProperty, setConverter, setDoubleProperty, setDoubleProperty, setFloatProperty, setFloatProperty, setIntProperty, setIntProperty, setLongProperty, setLongProperty, setStringProperty
-
Constructor Details
-
DefaultMonitoringDataProvider
public DefaultMonitoringDataProvider()
-
-
Method Details
-
defineProperties
public void defineProperties()Description copied from class:MonitoringDataProviderPerform 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:
definePropertiesin classMonitoringDataProvider
-
init
public void init()Description copied from class:MonitoringDataProviderPerform the initialization of this provider. This method is called exactly once on the producer (where the data comes from) side only.- Specified by:
initin classMonitoringDataProvider
-
getValues
Description copied from class:MonitoringDataProviderGet 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:
getValuesin classMonitoringDataProvider- Returns:
- the values as a
TypedPropertiesobject, mapping the properties names to their value as aString.
-
getLocalizationBase
Description copied from class:MonitoringDataProviderGet the base path to the localization bundles for this provider. For exemple, if the base path ismypackage.MyProps, then the packahemypackageshould at least contain the fileMyProps.properties, along with other localized bundles such asMyProps_fr.properties,MyProps_en_GB.properties, etc.This default implementation returns
null. It should be overriden to provide a different value.- Overrides:
getLocalizationBasein classMonitoringDataProvider- Returns:
- the base path to the localization bundles for this provider.
- See Also:
-