/** * The specification of this method matches that of * {@link FileContext#getFsStatus(Path)}. */ public abstract FsStatus getFsStatus() throws AccessControlException, FileNotFoundException, IOException;
@Override public FsStatus next(final AbstractFileSystem fs, final Path p) throws IOException, UnresolvedLinkException { return fs.getFsStatus(p); } }.resolve(this, absF);
@Override public FsStatus getFsStatus(final Path f) throws AccessControlException, FileNotFoundException, UnresolvedLinkException, IOException { return myFs.getFsStatus(f); }
@Override public FsStatus getFsStatus() throws IOException { return myFs.getFsStatus(); }
@Override public FsStatus getFsStatus() throws IOException { return myFs.getFsStatus(); }
FileNotFoundException, UnsupportedFileSystemException, IOException { if (f == null) { return defaultFS.getFsStatus();
/** @throws Exception If failed. */ @Test public void testStatus() throws Exception { Path file1 = new Path("/file1"); try (FSDataOutputStream file = fs.create(file1, EnumSet.noneOf(CreateFlag.class), Options.CreateOpts.perms(FsPermission.getDefault()))) { file.write(new byte[1024 * 1024]); } FsStatus status = fs.getFsStatus(); assertEquals(getClientFsUser(), fs.getFileStatus(file1).getOwner()); assertEquals(4, grid(0).cluster().nodes().size()); long used = 0, max = 0; for (int i = 0; i < 4; i++) { IgniteFileSystem igfs = grid(i).fileSystem("igfs"); IgfsMetrics metrics = igfs.metrics(); used += metrics.localSpaceSize(); max += metrics.maxSpaceSize(); } assertEquals(used, status.getUsed()); assertEquals(max, status.getCapacity()); }
@Override public FsStatus getFsStatus(final Path f) throws AccessControlException, FileNotFoundException, UnresolvedLinkException, IOException { return myFs.getFsStatus(f); }
/** * The specification of this method matches that of * {@link FileContext#getFsStatus(Path)}. */ public abstract FsStatus getFsStatus() throws AccessControlException, FileNotFoundException, IOException;
@Override public FsStatus next(final AbstractFileSystem fs, final Path p) throws IOException, UnresolvedLinkException { return fs.getFsStatus(p); } }.resolve(this, absF);
@Override public FsStatus getFsStatus(final Path f) throws AccessControlException, FileNotFoundException, UnresolvedLinkException, IOException { return myFs.getFsStatus(f); }
@Override public FsStatus next(final AbstractFileSystem fs, final Path p) throws IOException, UnresolvedLinkException { return fs.getFsStatus(p); } }.resolve(this, absF);
/** * The specification of this method matches that of * {@link FileContext#getFsStatus(Path)}. */ public abstract FsStatus getFsStatus() throws AccessControlException, FileNotFoundException, IOException;
@Override public FsStatus next(final AbstractFileSystem fs, final Path p) throws IOException, UnresolvedLinkException { return fs.getFsStatus(p); } }.resolve(this, absF);
@Override public FsStatus getFsStatus() throws IOException { return myFs.getFsStatus(); }
/** * The specification of this method matches that of * {@link FileContext#getFsStatus(Path)}. */ public abstract FsStatus getFsStatus() throws AccessControlException, FileNotFoundException, IOException;
@Override public FsStatus getFsStatus(final Path f) throws AccessControlException, FileNotFoundException, UnresolvedLinkException, IOException { return myFs.getFsStatus(f); }
@Override public FsStatus getFsStatus(final Path f) throws AccessControlException, FileNotFoundException, UnresolvedLinkException, IOException { return myFs.getFsStatus(f); }
@Override public FsStatus next(final AbstractFileSystem fs, final Path p) throws IOException, UnresolvedLinkException { return fs.getFsStatus(p); } }.resolve(this, absF);
/** * The specification of this method matches that of * {@link FileContext#getFsStatus(Path)}. */ public abstract FsStatus getFsStatus() throws AccessControlException, FileNotFoundException, IOException;