/** {@inheritDoc} */ @Nullable @Override public Object localPeek( Object key, CachePeekMode[] peekModes ) throws IgniteCheckedException { return delegate.get().localPeek(keyTransformer.transform(key), peekModes); }
/** {@inheritDoc} */ @Nullable @Override public V localPeek(K key, CachePeekMode[] peekModes) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.localPeek(key, peekModes); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Nullable @Override public V localPeek(K key, CachePeekMode... peekModes) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { return delegate.localPeek(key, peekModes); } catch (IgniteException | IgniteCheckedException e) { throw cacheException(e); } }
/** * Resolves task name by task name hash. * * @param taskNameHash Task name hash. * @return Task name or {@code null} if not found. */ public String resolveTaskName(int taskNameHash) { if (taskNameHash == 0) return null; assert ctx.security().enabled(); try { return taskMetaCache().localPeek( new GridTaskNameHashKey(taskNameHash), null); } catch (IgniteCheckedException e) { throw new IgniteException(e); } }
/** @throws Exception If failed. */ @Test public void testCreate() throws Exception { IgfsPath path = path("/file"); try (IgfsOutputStream os = igfs.create(path, false)) { assert os != null; IgfsFileImpl info = (IgfsFileImpl)igfs.info(path); for (int i = 0; i < nodesCount(); i++) { IgfsEntryInfo fileInfo = (IgfsEntryInfo)grid(i).cachex(metaCacheName).localPeek(info.fileId(), null); assertNotNull(fileInfo); assertNotNull(fileInfo.listing()); } } finally { igfs.delete(path("/"), true); } }
/** {@inheritDoc} */ @Nullable @Override public V localPeek(K key, CachePeekMode... peekModes) { try { return delegate.localPeek(key, peekModes, null); } catch (IgniteException | IgniteCheckedException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Nullable @Override public V localPeek(K key, CachePeekMode[] peekModes, @Nullable IgniteCacheExpiryPolicy plc) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.localPeek(key, peekModes, plc); } finally { gate.leave(prev); } }
/** * Resolves task name by task name hash. * * @param taskNameHash Task name hash. * @return Task name or {@code null} if not found. */ public String resolveTaskName(int taskNameHash) { if (taskNameHash == 0) return null; assert ctx.security().enabled(); try { return taskMetaCache().localPeek( new GridTaskNameHashKey(taskNameHash), null, null); } catch (IgniteCheckedException e) { throw new IgniteException(e); } }