Class StorageHubFS

  • All Implemented Interfaces:
    ru.serce.jnrfuse.FuseFS, ru.serce.jnrfuse.Mountable

    public class StorageHubFS
    extends ru.serce.jnrfuse.FuseStubFS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
      protected static String VREFOLDERS_NAME  
      • Fields inherited from class ru.serce.jnrfuse.AbstractFuseFS

        fuseOperations, libFuse, mounted, mountPoint
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int access​(String path, int mask)  
      void checkSpecialFolderRemove​(String path)  
      int create​(String path, long mode, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int flush​(String path, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int getattr​(String path, ru.serce.jnrfuse.struct.FileStat stat)  
      int mkdir​(String path, long mode)  
      int open​(String path, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int read​(String path, jnr.ffi.Pointer buf, long size, long offset, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int readdir​(String path, jnr.ffi.Pointer buf, ru.serce.jnrfuse.FuseFillDir filter, long offset, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int readlink​(String path, jnr.ffi.Pointer buf, long size)  
      int release​(String path, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int rename​(String path, String newName)  
      int rmdir​(String path)  
      int truncate​(String path, long size)  
      int unlink​(String path)  
      int utimens​(String path, ru.serce.jnrfuse.struct.Timespec[] timespec)  
      int write​(String path, jnr.ffi.Pointer buf, long size, long offset, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      • Methods inherited from class ru.serce.jnrfuse.FuseStubFS

        bmap, chmod, chown, destroy, fallocate, fgetattr, flock, fsync, fsyncdir, ftruncate, getxattr, init, ioctl, link, listxattr, lock, mknod, opendir, poll, read_buf, releasedir, removexattr, setxattr, statfs, symlink, write_buf
      • Methods inherited from class ru.serce.jnrfuse.AbstractFuseFS

        getContext, getFSName, mount, umount
      • Methods inherited from interface ru.serce.jnrfuse.Mountable

        mount, mount, mount
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • StorageHubFS

        public StorageHubFS​(String token)
    • Method Detail

      • write

        public int write​(String path,
                         jnr.ffi.Pointer buf,
                         long size,
                         long offset,
                         ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        write in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        write in class ru.serce.jnrfuse.FuseStubFS
      • flush

        public int flush​(String path,
                         ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        flush in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        flush in class ru.serce.jnrfuse.FuseStubFS
      • create

        public int create​(String path,
                          long mode,
                          ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        create in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        create in class ru.serce.jnrfuse.FuseStubFS
      • getattr

        public int getattr​(String path,
                           ru.serce.jnrfuse.struct.FileStat stat)
        Specified by:
        getattr in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        getattr in class ru.serce.jnrfuse.FuseStubFS
      • mkdir

        public int mkdir​(String path,
                         long mode)
        Specified by:
        mkdir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        mkdir in class ru.serce.jnrfuse.FuseStubFS
      • read

        public int read​(String path,
                        jnr.ffi.Pointer buf,
                        long size,
                        long offset,
                        ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        read in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        read in class ru.serce.jnrfuse.FuseStubFS
      • readdir

        public int readdir​(String path,
                           jnr.ffi.Pointer buf,
                           ru.serce.jnrfuse.FuseFillDir filter,
                           long offset,
                           ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        readdir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        readdir in class ru.serce.jnrfuse.FuseStubFS
      • rename

        public int rename​(String path,
                          String newName)
        Specified by:
        rename in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        rename in class ru.serce.jnrfuse.FuseStubFS
      • rmdir

        public int rmdir​(String path)
        Specified by:
        rmdir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        rmdir in class ru.serce.jnrfuse.FuseStubFS
      • checkSpecialFolderRemove

        public void checkSpecialFolderRemove​(String path)
                                      throws org.gcube.common.storagehub.model.exceptions.UserNotAuthorizedException
        Throws:
        org.gcube.common.storagehub.model.exceptions.UserNotAuthorizedException
      • unlink

        public int unlink​(String path)
        Specified by:
        unlink in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        unlink in class ru.serce.jnrfuse.FuseStubFS
      • readlink

        public int readlink​(String path,
                            jnr.ffi.Pointer buf,
                            long size)
        Specified by:
        readlink in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        readlink in class ru.serce.jnrfuse.FuseStubFS
      • open

        public int open​(String path,
                        ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        open in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        open in class ru.serce.jnrfuse.FuseStubFS
      • release

        public int release​(String path,
                           ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        release in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        release in class ru.serce.jnrfuse.FuseStubFS
      • truncate

        public int truncate​(String path,
                            long size)
        Specified by:
        truncate in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        truncate in class ru.serce.jnrfuse.FuseStubFS
      • access

        public int access​(String path,
                          int mask)
        Specified by:
        access in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        access in class ru.serce.jnrfuse.FuseStubFS
      • utimens

        public int utimens​(String path,
                           ru.serce.jnrfuse.struct.Timespec[] timespec)
        Specified by:
        utimens in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        utimens in class ru.serce.jnrfuse.FuseStubFS