/** {@inheritDoc} */ @Override protected IgfsEntryInfo call0(IgfsContext ctx) throws Exception { IgfsMetaManager meta = ctx.meta(); return meta.infoForPath(path); }
try { IgfsEntryInfo info = infoForPath(path);
IgfsEntryInfo info = infoForPath(path);
@Override public Collection<IgfsBlockLocation> call() throws Exception { if (log.isDebugEnabled()) log.debug("Get affinity for file block [path=" + path + ", start=" + start + ", len=" + len + ']'); IgfsMode mode = resolveMode(path); if (mode == PROXY) return secondaryFs.affinity(path, start, len, maxLen); // Check memory first. IgfsEntryInfo info = meta.infoForPath(path); if (info == null && mode != PRIMARY) { assert IgfsUtils.isDualMode(mode); assert secondaryFs != null; // Synchronize info = meta.synchronizeFileDual(secondaryFs, path); } if (info == null) throw new IgfsPathNotFoundException("File not found: " + path); if (!info.isFile()) throw new IgfsPathIsDirectoryException("Failed to get affinity for path because it is not " + "a file: " + path); return data.affinity(info, start, len, maxLen); } });
info = meta.infoForPath(path);
IgfsEntryInfo info = meta.infoForPath(path);
/** {@inheritDoc} */ @Override protected IgfsEntryInfo call0(IgfsContext ctx) throws Exception { IgfsMetaManager meta = ctx.meta(); return meta.infoForPath(path); }
try { IgfsEntryInfo info = infoForPath(path);
IgfsEntryInfo info = infoForPath(path);
@Override public Collection<IgfsBlockLocation> call() throws Exception { if (log.isDebugEnabled()) log.debug("Get affinity for file block [path=" + path + ", start=" + start + ", len=" + len + ']'); IgfsMode mode = resolveMode(path); if (mode == PROXY) return secondaryFs.affinity(path, start, len, maxLen); // Check memory first. IgfsEntryInfo info = meta.infoForPath(path); if (info == null && mode != PRIMARY) { assert IgfsUtils.isDualMode(mode); assert secondaryFs != null; // Synchronize info = meta.synchronizeFileDual(secondaryFs, path); } if (info == null) throw new IgfsPathNotFoundException("File not found: " + path); if (!info.isFile()) throw new IgfsPathIsDirectoryException("Failed to get affinity for path because it is not " + "a file: " + path); return data.affinity(info, start, len, maxLen); } });
info = meta.infoForPath(path);
IgfsEntryInfo info = meta.infoForPath(path);