To add a monitoring extension to a REM plugin:

1

Open a terminal, and cd into your REM plugin directory (such foo-em).

2

Run ./create-monitoring-extension.sh, optionally specifying the function and class prefix (otherwise the SDK will prompt you for them).

For example:

./create-monitoring-extension.sh -f bar -c Bar

The SDK generates a new monitoring extension from the template into your plugin’s src directory.

3

Fill in the monitoring request handler implementation:

  • Edit the generated monitoring request handler class (such as com/opencloud/rem/foo/server/monitoring/BarMonitoringRequestHandler.java).

    • Fetch the data you want to be displayed.

    • Construct the TableData object to be returned.

4

You can repeat this process using different values to create several monitoring extensions within your plugin.

You can then run your plugin to see what it looks like.

Previous page Next page