private void runUntilShutdown(Runnable r) { try { r.run(); } catch (CancelException e) { if (logger.isTraceEnabled()) { logger.trace("Caught shutdown exception", e); } } catch (VirtualMachineError err) { SystemFailure.initiateFailure(err); // If this ever returns, rethrow the error. We're poisoned // now, so don't let this thread continue. throw err; } catch (Throwable t) { SystemFailure.checkFailure(); if (isCloseInProgress()) { logger.debug("Caught unusual exception during shutdown: {}", t.getMessage(), t); } else { logger.warn("Task failed with exception", t); } } }
handleEvent(manager, listener); } catch (CancelException e) { if (manager.isCloseInProgress()) { if (logger.isTraceEnabled()) { logger.trace("MemberEventInvoker: cancelled");
handleMemberEvent(ev); } catch (InterruptedException e) { if (isCloseInProgress()) { if (logger.isTraceEnabled()) { logger.trace("MemberEventInvoker: InterruptedException during shutdown"); break; } catch (CancelException e) { if (isCloseInProgress()) { if (logger.isTraceEnabled()) { logger.trace("MemberEventInvoker: cancelled");
public InternalDistributedMember getElderId() throws DistributedSystemDisconnectedException { if (clusterDistributionManager.isCloseInProgress()) { throw new DistributedSystemDisconnectedException( "no valid elder when system is shutting down", clusterDistributionManager.getRootCause()); } clusterDistributionManager.getSystem().getCancelCriterion().checkCancelInProgress(null); return getElderCandidate(); }
if (clusterDistributionManager.isCloseInProgress()) { return false;
if (p_crashed && !isCloseInProgress()) { msg = "Member at {} unexpectedly left the distributed cache: {}";