Advance features for plug-ins
So far, we have learned about the basic functionality of plug-ins, we saw the various artefacts needed and we also saw how to package and deploy those artefacts. In this section, we'll cover some of the advanced features of plug-ins.
Charts
Once the plug-in is deployed and the target is discovered, we can see the target homepage, and on the homepage, we can see the status and availability metrics.
Wouldn't it be nice if we could add some charts that can show historical data on the target homepage? Plug-ins provide support for adding such charts on the target homepage. All that we need to do is that we define the location of the chart, the data that should go in the chart and the type of the chart. We can define all of this in an XML format and include that file as part of the plug-in archive.
One sample chart file is listed below:
<HomepageCharts TARGET_TYPE="sun_javawebserver"> <ChartSet> <TopPane> <Chart TYPE="timeSeriesChart"> <ChartProperty...