@Override public void run() { try { run0(); } catch (Throwable t) { inspectOutOfMemoryError(t); logger.severe(t); } }
@Override public void run() { try { run0(); } catch (Throwable t) { inspectOutOfMemoryError(t); logger.severe(t); } }
private void process(Runnable task) { processed.inc(); try { task.run(); } catch (Throwable e) { OutOfMemoryErrorDispatcher.inspectOutOfMemoryError(e); logger.severe(getName() + " caught an exception while processing:" + task, e); } }
private void doRun() throws InterruptedException { while (!shutdown) { Packet response = responseQueue.take(); try { inboundResponseHandler.accept(response); } catch (Throwable e) { inspectOutOfMemoryError(e); logger.severe("Failed to process response: " + response + " on:" + getName(), e); } } }
private void doRun() throws InterruptedException { while (!shutdown) { Packet response = responseQueue.take(); try { inboundResponseHandler.accept(response); } catch (Throwable e) { inspectOutOfMemoryError(e); logger.severe("Failed to process response: " + response + " on:" + getName(), e); } } }
private void process(Runnable task) { processed.inc(); try { task.run(); } catch (Throwable e) { OutOfMemoryErrorDispatcher.inspectOutOfMemoryError(e); logger.severe(getName() + " caught an exception while processing task:" + task, e); } }
@Override public void run() { long currentTimeMillis = System.currentTimeMillis(); try { if (expectedNextMillis + MAX_DELAY_MILLIS < currentTimeMillis) { logger.warning(getClass().getSimpleName() + " delayed " + (currentTimeMillis - expectedNextMillis) + " ms"); delayedExecutionCount.inc(); } run0(); } catch (Throwable t) { // we want to catch the exception; if we don't and the executor runs into it, it will abort the task. inspectOutOfMemoryError(t); logger.severe(t); } finally { expectedNextMillis = currentTimeMillis + periodMillis; } }
@Override public void run() { long currentTimeMillis = System.currentTimeMillis(); try { if (expectedNextMillis + MAX_DELAY_MILLIS < currentTimeMillis) { logger.warning(getClass().getSimpleName() + " delayed " + (currentTimeMillis - expectedNextMillis) + " ms"); delayedExecutionCount.inc(); } run0(); } catch (Throwable t) { // we want to catch the exception; if we don't and the executor runs into it, it will abort the task. inspectOutOfMemoryError(t); logger.severe(t); } finally { expectedNextMillis = currentTimeMillis + periodMillis; } }
@Override public void run() { try { doRun(); } catch (InterruptedException e) { ignore(e); } catch (Throwable t) { inspectOutOfMemoryError(t); logger.severe(t); } }
@Override public void run() { try { doRun(); } catch (InterruptedException e) { ignore(e); } catch (Throwable t) { inspectOutOfMemoryError(t); logger.severe(t); } }
@Override public void run() { try { while (isRunning()) { processTask(); sleep(); } } catch (Throwable throwable) { if (!(throwable instanceof InterruptedException)) { inspectOutOfMemoryError(throwable); logger.warning("Problem on Hazelcast Management Center Service while polling for a task.", throwable); } } }
@Override public void run() { try { while (isRunning()) { processTask(); sleep(); } } catch (Throwable throwable) { if (!(throwable instanceof InterruptedException)) { inspectOutOfMemoryError(throwable); logger.warning("Problem on Hazelcast Management Center Service while polling for a task.", throwable); } } }
@Override public void run() { try { while (isRunning()) { timedMemberState.set(timedMemberStateFactory.createTimedMemberState()); sleep(); } } catch (Throwable throwable) { inspectOutOfMemoryError(throwable); if (!(throwable instanceof InterruptedException)) { logger.warning("Hazelcast Management Center Service will be shutdown due to exception.", throwable); shutdown(); } } }
@Override public void run() { try { while (isRunning()) { timedMemberState.set(timedMemberStateFactory.createTimedMemberState()); sleep(); } } catch (Throwable throwable) { inspectOutOfMemoryError(throwable); if (!(throwable instanceof InterruptedException)) { logger.warning("Hazelcast Management Center Service will be shutdown due to exception.", throwable); shutdown(); } } }
@Override public void run() { try { while (isRunning()) { long startMs = Clock.currentTimeMillis(); sendEvents(); long endMs = Clock.currentTimeMillis(); sleepIfPossible(EVENT_SEND_INTERVAL_MILLIS, endMs - startMs); } } catch (Throwable throwable) { inspectOutOfMemoryError(throwable); if (!(throwable instanceof InterruptedException)) { logger.warning("Exception occurred while sending events", throwable); } } }
@Override public void run() { try { while (isRunning()) { long startMs = Clock.currentTimeMillis(); sendState(); long endMs = Clock.currentTimeMillis(); sleepIfPossible(updateIntervalMs, endMs - startMs); } } catch (Throwable throwable) { inspectOutOfMemoryError(throwable); if (!(throwable instanceof InterruptedException)) { logger.warning("Exception occurred while calculating stats", throwable); } } }
@Override public void run() { try { while (isRunning()) { long startMs = Clock.currentTimeMillis(); sendEvents(); long endMs = Clock.currentTimeMillis(); sleepIfPossible(EVENT_SEND_INTERVAL_MILLIS, endMs - startMs); } } catch (Throwable throwable) { inspectOutOfMemoryError(throwable); if (!(throwable instanceof InterruptedException)) { logger.warning("Exception occurred while sending events", throwable); } } }
@Override public void run() { try { while (isRunning()) { long startMs = Clock.currentTimeMillis(); sendState(); long endMs = Clock.currentTimeMillis(); sleepIfPossible(updateIntervalMs, endMs - startMs); } } catch (Throwable throwable) { inspectOutOfMemoryError(throwable); if (!(throwable instanceof InterruptedException)) { logger.warning("Exception occurred while calculating stats", throwable); } } }
@Override public final void run() { nodeExtension.onThreadStart(this); try { while (!shutdown) { Object task; try { task = queue.take(priority); } catch (InterruptedException e) { continue; } process(task); } } catch (Throwable t) { inspectOutOfMemoryError(t); logger.severe(t); } finally { nodeExtension.onThreadStop(this); } }
@Override public final void run() { nodeExtension.onThreadStart(this); try { while (!shutdown) { Object task; try { task = queue.take(priority); } catch (InterruptedException e) { continue; } process(task); } } catch (Throwable t) { inspectOutOfMemoryError(t); logger.severe(t); } finally { nodeExtension.onThreadStop(this); } }