@Override public void apply(IgniteInternalFuture<IgniteBiTuple<Process, HadoopProcessDescriptor>> f) { try { // Make sure there were no exceptions. f.get(); prepareForJob(proc, job, plan); } catch (IgniteCheckedException ignore) { // Exception is printed in future's onDone() method. } } });
@Override public GridCacheReturn applyx(IgniteInternalFuture<Void> f) throws IgniteCheckedException { f.get(); return ret; } }));
@Override public T applyx(IgniteInternalFuture<?> fut) throws IgniteCheckedException { fut.get(); return res; } });
@Override public void apply(IgniteInternalFuture<Boolean> f) { try { if (!f.get()) return; } catch (IgniteCheckedException e) { U.error(log, "Failed to initialize exchange future: " + this, e); return; } processFullMessage(true, node, msg); } });
/** {@inheritDoc} */ @Override public V get() { try { return fut.get(); } catch (IgniteCheckedException e) { throw convertException(e); } }
/** {@inheritDoc} */ @Override public V get(long timeout, TimeUnit unit) { try { return fut.get(timeout, unit); } catch (IgniteCheckedException e) { throw convertException(e); } }
@Override public Object call() throws Exception { fut.get(); return null; } }, IgniteCheckedException.class, null);
/** * @throws IgniteCheckedException If failed. */ public void commit() throws IgniteCheckedException { commitNearTxLocalAsync().get(); }
/** {@inheritDoc} */ @Override public <T> EntryProcessorResult<T> invoke(K key, EntryProcessor<K, V, T> entryProcessor, Object... args) throws IgniteCheckedException { return invokeAsync(key, entryProcessor, args).get(); }
/** * @throws IgniteCheckedException If failed. */ public void rollbackDhtLocal() throws IgniteCheckedException { rollbackDhtLocalAsync().get(); }
@Override public Object call() throws Exception { readFut.get(); return null; } }, IgniteCheckedException.class, "Cannot serialize transaction due to write conflict");
@Override public void apply(IgniteInternalFuture<GridCacheUpdateTxResult> fut) { try { tx.incrementLockCounter(); processEntry(entry0, op, fut.get(), val0, backups0); continueLoop(true); } catch (Throwable e) { onDone(e); } } });
@Override public void apply(IgniteInternalFuture<GridNearTxPrepareResponse> prepFut) { try { fut.onResult(prepFut.get(), nearEntries); } catch (IgniteCheckedException e) { fut.onError(e); } } });
/** {@inheritDoc} */ @Override public int size(CachePeekMode[] peekModes) throws IgniteCheckedException { if (isLocal()) return localSize(peekModes); return sizeAsync(peekModes).get(); }
/** {@inheritDoc} */ @Override public IgfsFile info(IgfsPath path) throws IgniteCheckedException { final IgfsPathControlRequest msg = new IgfsPathControlRequest(); msg.command(INFO); msg.path(path); msg.userName(userName); return io.send(msg).chain(FILE_RES).get(); }
/** {@inheritDoc} */ @Override public Boolean rename(IgfsPath src, IgfsPath dest) throws IgniteCheckedException { final IgfsPathControlRequest msg = new IgfsPathControlRequest(); msg.command(RENAME); msg.path(src); msg.destinationPath(dest); msg.userName(userName); return io.send(msg).chain(BOOL_RES).get(); }
/** * Destroy SQL cache on given node. * @param node Node to create cache on. */ protected void destroySqlCache(Ignite node) throws IgniteCheckedException { ((IgniteEx)node).context().cache().dynamicDestroyCache(CACHE_NAME, true, true, false, null).get(); }
/** * Lock coordinator version in order to keep MVCC versions in place. * * @param node Node. * @throws IgniteCheckedException if failed. */ private static void lockVersion(IgniteEx node) throws IgniteCheckedException { node.context().coordinators().requestReadSnapshotAsync().get(); }
/** {@inheritDoc} */ @Override public Boolean setTimes(IgfsPath path, long accessTime, long modificationTime) throws IgniteCheckedException { final IgfsPathControlRequest msg = new IgfsPathControlRequest(); msg.command(SET_TIMES); msg.path(path); msg.accessTime(accessTime); msg.modificationTime(modificationTime); msg.userName(userName); return io.send(msg).chain(BOOL_RES).get(); }
@Override public void run() throws Exception { final QueryIndex idx = index(IDX_NAME_1, field(FIELD_NAME_1)); queryProcessor(srv).dynamicIndexCreate(CACHE_NAME, CACHE_NAME, TBL_NAME, idx, false, 0).get(); } });