/** {@inheritDoc} */ @Override public Map invokeAll(Map map, Object... args) throws IgniteCheckedException { return delegate.get().invokeAll(map, args); }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll( Map<? extends K, ? extends EntryProcessor<K, V, T>> map, Object... args) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { if (isAsync()) { setFuture(delegate.invokeAllAsync(map, args)); return null; } else return delegate.invokeAll(map, args); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, EntryProcessor<K, V, T> entryProcessor, Object... args ) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { if (isAsync()) { setFuture(delegate.invokeAllAsync(keys, entryProcessor, args)); return null; } else return delegate.invokeAll(keys, entryProcessor, args); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public Map invokeAll(Set keys, EntryProcessor entryProcessor, Object... args) throws IgniteCheckedException { return delegate.get().invokeAll((Set<?>)transform(keys), entryProcessor, args); }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll( Set<? extends K> keys, CacheEntryProcessor<K, V, T> entryProcessor, Object... args ) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { if (isAsync()) { setFuture(delegate.invokeAllAsync(keys, entryProcessor, args)); return null; } else return delegate.invokeAll(keys, entryProcessor, args); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll( Map<? extends K, ? extends EntryProcessor<K, V, T>> map, Object... args) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.invokeAll(map, args); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, CacheEntryProcessor<K, V, T> entryProcessor, Object... args) { try { if (isAsync()) { setFuture(delegate.invokeAllAsync(keys, entryProcessor, args)); return null; } else return delegate.invokeAll(keys, entryProcessor, args); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, EntryProcessor<K, V, T> entryProcessor, Object... args) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.invokeAll(keys, entryProcessor, args); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, EntryProcessor<K, V, T> entryProcessor, Object... args) { try { if (isAsync()) { setFuture(delegate.invokeAllAsync(keys, entryProcessor, args)); return null; } else return delegate.invokeAll(keys, entryProcessor, args); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** * Transfer entry from one directory to another. * * @param entry Entry to be transferred. * @param srcId Source ID. * @param srcName Source name. * @param destId Destination ID. * @param destName Destination name. * @throws IgniteCheckedException If failed. */ private void transferEntry(IgfsListingEntry entry, IgniteUuid srcId, String srcName, IgniteUuid destId, String destName) throws IgniteCheckedException { validTxState(true); if (F.eq(srcId, destId)) id2InfoPrj.invoke(srcId, new IgfsMetaDirectoryListingRenameProcessor(srcName, destName)); else { Map<IgniteUuid, EntryProcessor<IgniteUuid, IgfsEntryInfo, Void>> procMap = new HashMap<>(); procMap.put(srcId, new IgfsMetaDirectoryListingRemoveProcessor(srcName, entry.fileId())); procMap.put(destId, new IgfsMetaDirectoryListingAddProcessor(destName, entry)); id2InfoPrj.invokeAll(procMap); } }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll( Map<? extends K, ? extends EntryProcessor<K, V, T>> map, Object... args) { try { if (isAsync()) { setFuture(delegate.invokeAllAsync(map, args)); return null; } else return delegate.invokeAll(map, args); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
Map<Object, EntryProcessorResult> invokeRes = ((IgniteInternalCache)id2InfoPrj).invokeAll(procMap);
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll( Map<? extends K, ? extends EntryProcessor<K, V, T>> map, Object... args) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.invokeAll(map, args); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, EntryProcessor<K, V, T> entryProcessor, Object... args) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.invokeAll(keys, entryProcessor, args); } finally { gate.leave(prev); } }
/** * Transfer entry from one directory to another. * * @param entry Entry to be transferred. * @param srcId Source ID. * @param srcName Source name. * @param destId Destination ID. * @param destName Destination name. * @throws IgniteCheckedException If failed. */ private void transferEntry(IgfsListingEntry entry, IgniteUuid srcId, String srcName, IgniteUuid destId, String destName) throws IgniteCheckedException { validTxState(true); if (F.eq(srcId, destId)) id2InfoPrj.invoke(srcId, new IgfsMetaDirectoryListingRenameProcessor(srcName, destName)); else { Map<IgniteUuid, EntryProcessor<IgniteUuid, IgfsEntryInfo, Void>> procMap = new HashMap<>(); procMap.put(srcId, new IgfsMetaDirectoryListingRemoveProcessor(srcName, entry.fileId())); procMap.put(destId, new IgfsMetaDirectoryListingAddProcessor(destName, entry)); id2InfoPrj.invokeAll(procMap); } }
Map<Object, EntryProcessorResult> invokeRes = ((IgniteInternalCache)id2InfoPrj).invokeAll(procMap);