Я вижу org.apache.ignite.internal.processors.query.h2.sys.view.SqlSystemViewNodeMetrics
в 2.8. Это внутренний класс, поэтому вам не нужно использовать его напрямую.
В любом случае, вот как это делают существующие экспортеры:
/**
* This SPI implementation exports system views as JMX beans.
*/
public class JmxSystemViewExporterSpi extends IgniteSpiAdapter implements SystemViewExporterSpi {
/** System view registry. */
private ReadOnlySystemViewRegistry sysViewReg;
...
/** {@inheritDoc} */
@Override public void spiStart(@Nullable String igniteInstanceName) throws IgniteSpiException {
sysViewReg.forEach(this::register); // I expect NODE_METRICS to be here
sysViewReg.addSystemViewCreationListener(this::register);
}
Вы пытались делать то же самое?