JPPF Issue Tracker
Please log in to bookmark issues
CLOSED  Enhancement JPPF-579  -  Monitoring data providers: ability to configure a value converter for each datum
Posted Feb 13, 2019 - updated Feb 14, 2019
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
  • Status
  • Assigned to
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Category
    Management / Monitoring
  • Resolution
  • Priority
  • Targetted for
    icon_milestones.png JPPF 6.1
Issue description
Monitoring data providers allow to define properties of various types that are monitored over time. However, there is currently no way to specify how these values should be displayed in the JVM health view of the desktop and web administration consoles. JPPF currently uses default conversions based on the type of each property, but this may not be always convenient.

For instance, let's say we want to monitor the JVM uptime. This value is expressed in millisecons as a long integer value. However, in the GUI we'd rather have it displayed as days:hours:minutes:seconds.millis.

We propose to implement the ability to configure a value converter for each defined property to this effect.

For instance (just for example purpose, this is not what the actual design will be):
public interface MonitoringValueConverter {
  String convert(String value);
public abstract class MonitoringDataProvider {
  public MonitoringDataProvider setConverter(String name, MonitoringValueConverter converter) {
public class MyProvider extends MonitoringDataProvider {
  public void defineProperties() {
    setLongProperty("time", -1L).setConverter("time", value -> new Date(Long.valueOf(value)).toString());