info = status.isDirectory() ? new GridGgfsFileInfo(true, status.properties()) : new GridGgfsFileInfo(status.blockSize(), status.length(), null, null, false, status.properties());
if (!status.isDirectory() && !curPath.equals(endPath)) throw new GridException("Failed to create path the locally because secondary file system " + "directory structure was modified concurrently and the path is not a directory as " + GridGgfsFileInfo curInfo = status.isDirectory() ? new GridGgfsFileInfo(true, status.properties()) : new GridGgfsFileInfo(ggfsCtx.configuration().getBlockSize(), status.length(), ggfsCtx.ggfs().evictExclude(curPath, false), status.properties());
GridGgfsFileInfo fsInfo = new GridGgfsFileInfo(cfg.getBlockSize(), child.length(), evictExclude(path, false), child.properties()); files.add(new GridGgfsFileImpl(child.path(), fsInfo, data.groupBlockSize()));
Collection<GridGgfsBlockLocation> aff = ggfs.affinity(path, 0, file.length(), args.maxRangeLength()); ", subgrid=" + subgrid + ']'); GridGgfsJob job = createJob(path, new GridGgfsFileRange(file.path(), loc.start(), loc.length()), args); GridComputeJob jobImpl = ggfsProc.createJob(job, ggfs.name(), file.path(), loc.start(), loc.length(), args.recordResolver()); assert totalLen == file.length();
GridGgfsFileInfo fsInfo = new GridGgfsFileInfo(cfg.getBlockSize(), child.length(), evictExclude(path, false), child.properties()); files.add(new GridGgfsFileImpl(child.path(), fsInfo, data.groupBlockSize()));
if (!status.isDirectory() && !curPath.equals(endPath)) throw new GridException("Failed to create path the locally because secondary file system " + "directory structure was modified concurrently and the path is not a directory as " + GridGgfsFileInfo curInfo = status.isDirectory() ? new GridGgfsFileInfo(true, status.properties()) : new GridGgfsFileInfo(ggfsCtx.configuration().getBlockSize(), status.length(), ggfsCtx.ggfs().evictExclude(curPath, false), status.properties());
info = status.isDirectory() ? new GridGgfsFileInfo(true, status.properties()) : new GridGgfsFileInfo(status.blockSize(), status.length(), null, null, false, status.properties());
throw new GridGgfsException("Failed to open output stream to the file created in " + "the secondary file system because it no longer exists: " + path); else if (status.isDirectory()) throw new GridGgfsException("Failed to open output stream to the file created in " + "the secondary file system because the path points to a directory: " + path); GridGgfsFileInfo newInfo = new GridGgfsFileInfo(status.blockSize(), status.length(), affKey, GridUuid.randomUuid(), ggfsCtx.ggfs().evictExclude(path, false), status.properties());
throw new GridGgfsException("Failed to open output stream to the file created in " + "the secondary file system because it no longer exists: " + path); else if (status.isDirectory()) throw new GridGgfsException("Failed to open output stream to the file created in " + "the secondary file system because the path points to a directory: " + path); GridGgfsFileInfo newInfo = new GridGgfsFileInfo(status.blockSize(), status.length(), affKey, GridUuid.randomUuid(), ggfsCtx.ggfs().evictExclude(path, false), status.properties());