@Override protected void process(final DistributionManager dm) { final TXOriginatorRecoveryMessage msg = this; try { dm.getWaitingThreadPool().execute(new Runnable() { public void run() { processTXOriginatorRecoveryMessage(dm, msg); } }); } catch (RejectedExecutionException e) { logger.debug("Rejected processing of <{}>", msg, e); } }
dm.getWaitingThreadPool().execute(new Runnable() { public void run() { if (StateFlushOperation.DEBUG) {
dm.getWaitingThreadPool().execute(new Runnable() { public void run() { if (logger.isTraceEnabled(LogMarker.STATE_FLUSH_OP)) {
@Override protected void basicProcess(final DistributionManager dm, final LocalRegion lclRgn) { Assert.assertTrue(this.serialNum != DistributionAdvisor.ILLEGAL_SERIAL); try { this.lockRoot = null; // may set lockRoot to the root region where destroyLock is acquired final boolean sendReply = true; // Part of fix for bug 34450 which was caused by a PR destroy region op // dead-locked with // a PR create region op. The create region op required an entry update // to release a // DLock needed by the PR destroy.. by moving the destroy to the waiting // pool, the entry // update is allowed to complete. dm.getWaitingThreadPool().execute(destroyOp(dm, lclRgn, sendReply)); } catch (RejectedExecutionException e) { // rejected while trying to execute destroy thread // must be shutting down, just quit } }
/** Return true if a reply should be sent */ @Override protected void basicProcess(final DistributionManager dm, final LocalRegion lclRgn) { Assert.assertTrue(this.serialNum != DistributionAdvisor.ILLEGAL_SERIAL); try { this.lockRoot = null; // may set lockRoot to the root region where destroyLock is acquired final boolean sendReply = true; // Part of fix for bug 34450 which was caused by a PR destroy region op // dead-locked with // a PR create region op. The create region op required an entry update // to release a // DLock needed by the PR destroy.. by moving the destroy to the waiting // pool, the entry // update is allowed to complete. dm.getWaitingThreadPool().execute(destroyOp(dm, lclRgn, sendReply)); } catch (RejectedExecutionException e) { // rejected while trying to execute destroy thread // must be shutting down, just quit } }
dm.getWaitingThreadPool().execute(new Runnable() { public void run() { sendValueRequest(sender);
getWaitingThreadPool().execute(new Runnable() { public void run() {
dm.getWaitingThreadPool().execute(new Runnable() { public void run() { sendValueRequest(sender, log);
getWaitingThreadPool().execute(new Runnable() { public void run() {
/** * Returns the executor for the given type of processor. * */ public final Executor getExecutor(int processorType, InternalDistributedMember sender) { switch(processorType) { case STANDARD_EXECUTOR: return getThreadPool(); case SERIAL_EXECUTOR: return getSerialExecutor(sender); case VIEW_EXECUTOR: return this.viewThread; case HIGH_PRIORITY_EXECUTOR: return getHighPriorityThreadPool(); case WAITING_POOL_EXECUTOR: return getWaitingThreadPool(); case PARTITIONED_REGION_EXECUTOR: return getPartitionedRegionExcecutor(); case REGION_FUNCTION_EXECUTION_EXECUTOR: return getFunctionExcecutor(); default: throw new InternalGemFireError( LocalizedStrings.DistributionManager_UNKNOWN_PROCESSOR_TYPE .toLocalizedString(processorType)); } }
/** * Returns the executor for the given type of processor. * */ public final Executor getExecutor(int processorType, InternalDistributedMember sender) { switch(processorType) { case STANDARD_EXECUTOR: return getThreadPool(); case SERIAL_EXECUTOR: return getSerialExecutor(sender); case VIEW_EXECUTOR: return this.viewThread; case HIGH_PRIORITY_EXECUTOR: return getHighPriorityThreadPool(); case WAITING_POOL_EXECUTOR: return getWaitingThreadPool(); case PARTITIONED_REGION_EXECUTOR: return getPartitionedRegionExcecutor(); case REGION_FUNCTION_EXECUTION_EXECUTOR: return getFunctionExcecutor(); default: throw new InternalGemFireError( LocalizedStrings.DistributionManager_UNKNOWN_PROCESSOR_TYPE .toLocalizedString(processorType)); } }