/** {@inheritDoc} */ @Override public void onKernalStart(boolean active) throws IgniteCheckedException { if (notifyEnabled.get()) { try { verChecker = new GridUpdateNotifier(ctx.igniteInstanceName(), VER_STR, false); updateNtfTimer = new Timer("ignite-update-notifier-timer", true); // Setup periodic version check. updateNtfTimer.scheduleAtFixedRate( new UpdateNotifierTimerTask((IgniteKernal)ctx.grid(), verChecker, notifyEnabled), 0, PERIODIC_VER_CHECK_DELAY); } catch (IgniteCheckedException e) { if (log.isDebugEnabled()) log.debug("Failed to create GridUpdateNotifier: " + e); } } if (sndMetrics) { metricsProvider = ctx.discovery().createMetricsProvider(); long updateFreq = ctx.config().getMetricsUpdateFrequency(); ctx.timeout().addTimeoutObject(new MetricsUpdateTimeoutObject(updateFreq)); } }
/** {@inheritDoc} */ @Override public void onKernalStart(boolean active) throws IgniteCheckedException { if (notifyEnabled.get()) { try { verChecker = new GridUpdateNotifier(ctx.igniteInstanceName(), VER_STR, false); updateNtfTimer = new Timer("ignite-update-notifier-timer", true); // Setup periodic version check. updateNtfTimer.scheduleAtFixedRate( new UpdateNotifierTimerTask((IgniteKernal)ctx.grid(), verChecker, notifyEnabled), 0, PERIODIC_VER_CHECK_DELAY); } catch (IgniteCheckedException e) { if (log.isDebugEnabled()) log.debug("Failed to create GridUpdateNotifier: " + e); } } if (sndMetrics) { metricsProvider = ctx.discovery().createMetricsProvider(); long updateFreq = ctx.config().getMetricsUpdateFrequency(); ctx.timeout().addTimeoutObject(new MetricsUpdateTimeoutObject(updateFreq)); } }