/** {@inheritDoc} */ @Override public void start() throws IgniteCheckedException { if (ctx.config().isDaemon()) return; marshErrBytes = U.marshal(marsh, new IgniteCheckedException("Failed to marshal response error, " + "see node log for details.")); flusher = new IgniteThread(new GridWorker(ctx.igniteInstanceName(), "grid-data-loader-flusher", log) { @Override protected void body() throws InterruptedException { while (!isCancelled()) { DataStreamerImpl<K, V> ldr = flushQ.take(); if (!busyLock.enterBusy()) return; try { if (ldr.isClosed()) continue; ldr.tryFlush(); flushQ.offer(ldr); } finally { busyLock.leaveBusy(); } } } }); flusher.setUncaughtExceptionHandler(new OomExceptionHandler(ctx)); flusher.start(); if (log.isDebugEnabled()) log.debug("Started data streamer processor."); }
checker.setUncaughtExceptionHandler(new OomExceptionHandler(ctx));
thread.setUncaughtExceptionHandler(new OomExceptionHandler( cctx.kernalContext()));
segChkThread.setUncaughtExceptionHandler(new OomExceptionHandler(ctx));
/** {@inheritDoc} */ @Override public void start() throws IgniteCheckedException { if (ctx.config().isDaemon()) return; marshErrBytes = U.marshal(marsh, new IgniteCheckedException("Failed to marshal response error, " + "see node log for details.")); flusher = new IgniteThread(new GridWorker(ctx.igniteInstanceName(), "grid-data-loader-flusher", log) { @Override protected void body() throws InterruptedException { while (!isCancelled()) { DataStreamerImpl<K, V> ldr = flushQ.take(); if (!busyLock.enterBusy()) return; try { if (ldr.isClosed()) continue; ldr.tryFlush(); flushQ.offer(ldr); } finally { busyLock.leaveBusy(); } } } }); flusher.setUncaughtExceptionHandler(new OomExceptionHandler(ctx)); flusher.start(); if (log.isDebugEnabled()) log.debug("Started data streamer processor."); }
checker.setUncaughtExceptionHandler(new OomExceptionHandler(ctx));
thread.setUncaughtExceptionHandler(new OomExceptionHandler( cctx.kernalContext()));
segChkThread.setUncaughtExceptionHandler(new OomExceptionHandler(ctx));