@Override public GridGgfsSecondaryInputStreamDescriptor onSuccess( Map<GridGgfsPath, GridGgfsFileInfo> infos) throws Exception { GridGgfsFileInfo info = infos.get(path); if (info == null) throw new GridGgfsFileNotFoundException("File not found: " + path); if (!info.isFile()) throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path); return new GridGgfsSecondaryInputStreamDescriptor(infos.get(path), fs.open(path, bufSize)); }
@Override public GridGgfsSecondaryInputStreamDescriptor onSuccess( Map<GridGgfsPath, GridGgfsFileInfo> infos) throws Exception { GridGgfsFileInfo info = infos.get(path); if (info == null) throw new GridGgfsFileNotFoundException("File not found: " + path); if (!info.isFile()) throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path); return new GridGgfsSecondaryInputStreamDescriptor(infos.get(path), fs.open(path, bufSize)); }
throw new GridGgfsInvalidPathException("Source is not a directory: " + srcInfo); throw new GridGgfsInvalidPathException("Destination is not a directory: " + destInfo); throw new GridGgfsInvalidPathException("Failed to add file name into the destination directory " + "(file already exists) [fileId=" + fileId + ", destFileName=" + destFileName + ", destParentId=" + destParentId + ", destEntry=" + destEntry + ']');
throw new GridGgfsInvalidPathException("Source is not a directory: " + srcInfo); throw new GridGgfsInvalidPathException("Destination is not a directory: " + destInfo); throw new GridGgfsInvalidPathException("Failed to add file name into the destination directory " + "(file already exists) [fileId=" + fileId + ", destFileName=" + destFileName + ", destParentId=" + destParentId + ", destEntry=" + destEntry + ']');
throw new GridGgfsInvalidPathException("Failed to update times (parent was not found): " + fileName); throw new GridGgfsInvalidPathException("Failed to update times (file concurrently modified): " + fileName);
throw new GridGgfsInvalidPathException("Failed to update times (parent was not found): " + fileName); throw new GridGgfsInvalidPathException("Failed to update times (file concurrently modified): " + fileName);
throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path);
throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path);
throw new GridGgfsInvalidPathException("Failed to resolve parent directory: " + path); throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path);
throw new GridGgfsInvalidPathException("Failed to resolve parent directory: " + path); throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path);
throw new GridGgfsInvalidPathException("Failed to get affinity info for file (not a file): " + path);
throw new GridGgfsInvalidPathException("Failed to get affinity info for file (not a file): " + path);
throw new GridGgfsInvalidPathException("Failed to rename root directory."); throw new GridGgfsInvalidPathException("Failed to rename directory (cannot move directory of " + "upper level to self sub-dir) [src=" + src + ", dest=" + dest + ']'); throw new GridGgfsInvalidPathException("Cannot move file to a path with different eviction " + "exclude setting (need to copy and remove)");
throw new GridGgfsInvalidPathException("Failed to rename root directory."); throw new GridGgfsInvalidPathException("Failed to rename directory (cannot move directory of " + "upper level to self sub-dir) [src=" + src + ", dest=" + dest + ']'); throw new GridGgfsInvalidPathException("Cannot move file to a path with different eviction " + "exclude setting (need to copy and remove)");
throw new GridGgfsInvalidPathException("Parent file is not a directory: " + parentInfo);
throw new GridGgfsInvalidPathException("Parent file is not a directory: " + parentInfo);
throw new GridGgfsInvalidPathException("Failed to resolve parent directory: " + path);
throw new GridGgfsInvalidPathException("Failed to resolve parent directory: " + path);
throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path);
throw new GridGgfsInvalidPathException("Failed to open file (not a file): " + path);