/** {@inheritDoc} */ @Override public void callcc() { if (jobCtx != null) jobCtx.callcc(); }
@Override public void apply(IgniteFuture<Object> f) { jobCtx.callcc(); } });
@Override public void apply(IgniteFuture<Map<PartitionHashRecord, List<PartitionEntryHashRecord>>> f) { jobCtx.callcc(); } });
@Override public void apply(IgniteFuture<Map<PartitionKey, List<PartitionHashRecord>>> f) { jobCtx.callcc(); } });
@Override public void apply(IgniteFuture<Map<PartitionHashRecord, List<PartitionEntryHashRecord>>> f) { jobCtx.callcc(); } });
@Override public void apply(IgniteFuture<R> future) { jobCtx.callcc(); } });
@Override public void apply(IgniteInternalFuture<?> fut0) { jobCtx.callcc(); } });
/** * Called right after utility cache is started and ready for the usage. */ public void onUtilityCacheStarted() { synchronized (pendingJobCtxs) { if (pendingJobCtxs.isEmpty()) return; Iterator<ComputeJobContext> iter = pendingJobCtxs.iterator(); while (iter.hasNext()) { iter.next().callcc(); iter.remove(); } } }
@Override public void run() { jobCtx.callcc(); } }, 1000);
@Override public void run() { jobCtx.callcc(); } }, 1000);
@Override public void run() { jobCtx.callcc(); } }, 500);
@Override public void apply(IgniteFuture f) { assert futs[0].isDone(); assert futs[1] == null || futs[1].isDone(); assert futs[2] == null || futs[2].isDone(); jobCtx.callcc(); } };
/** {@inheritDoc} */ @Override protected ResultT run(VisorIdleVerifyTaskArg arg) throws IgniteException { if (fut == null) { fut = ignite.compute().executeAsync(taskCls, arg); if (!fut.isDone()) { jobCtx.holdcc(); fut.listen((IgniteInClosure<IgniteFuture<ResultT>>)f -> jobCtx.callcc()); return null; } } return fut.get(); }
/** {@inheritDoc} */ @Override public void callcc() { if (jobCtx != null) jobCtx.callcc(); }
@Override public void apply(IgniteFuture<Map<PartitionKey, List<PartitionHashRecord>>> f) { jobCtx.callcc(); } });
@Override public void apply(IgniteFuture<ResultT> f) { jobCtx.callcc(); } });
@Override public void apply(IgniteFuture<Map<PartitionHashRecord, List<PartitionEntryHashRecord>>> f) { jobCtx.callcc(); } });
@Override public void apply(IgniteFuture<Object> f) { jobCtx.callcc(); } });
/** * Called right after utility cache is started and ready for the usage. */ public void onUtilityCacheStarted() { synchronized (pendingJobCtxs) { if (pendingJobCtxs.isEmpty()) return; Iterator<ComputeJobContext> iter = pendingJobCtxs.iterator(); while (iter.hasNext()) { iter.next().callcc(); iter.remove(); } } }
@Override public void apply(IgniteFuture f) { assert futs[0].isDone(); assert futs[1] == null || futs[1].isDone(); assert futs[2] == null || futs[2].isDone(); jobCtx.callcc(); } };