Class PushMetricsExporterAdapter

    • Constructor Detail

      • PushMetricsExporterAdapter

        public PushMetricsExporterAdapter()
    • Method Detail

      • spiStart

        public void spiStart​(@Nullable
                             @Nullable String igniteInstanceName)
                      throws IgniteSpiException
        This method is called to start SPI. After this method returns successfully kernel assumes that SPI is fully operational.
        Specified by:
        spiStart in interface IgniteSpi
        Parameters:
        igniteInstanceName - Name of Ignite instance this SPI is being started for (null for default Ignite instance).
        Throws:
        IgniteSpiException - Throws in case of any error during SPI start.
      • spiStop

        public void spiStop()
                     throws IgniteSpiException
        This method is called to stop SPI. After this method returns kernel assumes that this SPI is finished and all resources acquired by it are released.

        Note that this method can be called at any point including during recovery of failed start. It should make no assumptions on what state SPI will be in when this method is called.

        Specified by:
        spiStop in interface IgniteSpi
        Throws:
        IgniteSpiException - Thrown in case of any error during SPI stop.
      • export

        public abstract void export()
        Callback to do the export of metrics info. Method will be called into some Ignite managed thread each getPeriod() millisecond.
      • setPeriod

        public void setPeriod​(long period)
        Sets period in milliseconds after export() method should be called.
        Parameters:
        period - Period in milliseconds.
      • getPeriod

        public long getPeriod()
        Returns:
        Period in milliseconds after export() method should be called.