Class MFileS3

  • All Implemented Interfaces:
    Comparable<thredds.inventory.MFile>, thredds.inventory.MFile

    public class MFileS3
    extends Object
    implements thredds.inventory.MFile
    Implements MFile for objects stored on AWS S3 compatible object stores.
    Since:
    5.4.0
    • Method Detail

      • getLastModified

        public long getLastModified()
        Specified by:
        getLastModified in interface thredds.inventory.MFile
      • updateLastModified

        public long updateLastModified()
        Update last modified by fetching from a head request
      • getLength

        public long getLength()
        Specified by:
        getLength in interface thredds.inventory.MFile
      • updateLength

        public long updateLength()
        Update file length by fetching from a head request
      • isDirectory

        public boolean isDirectory()
        Specified by:
        isDirectory in interface thredds.inventory.MFile
      • getPath

        public String getPath()
        Specified by:
        getPath in interface thredds.inventory.MFile
      • getName

        public String getName()
        Specified by:
        getName in interface thredds.inventory.MFile
      • getParent

        @Nullable
        public thredds.inventory.MFile getParent()
                                          throws IOException
        Specified by:
        getParent in interface thredds.inventory.MFile
        Throws:
        IOException
      • compareTo

        public int compareTo​(thredds.inventory.MFile o)
        Specified by:
        compareTo in interface Comparable<thredds.inventory.MFile>
        Specified by:
        compareTo in interface thredds.inventory.MFile
      • getAuxInfo

        @Nullable
        public Object getAuxInfo()
        Specified by:
        getAuxInfo in interface thredds.inventory.MFile
      • setAuxInfo

        public void setAuxInfo​(Object auxInfo)
        Specified by:
        setAuxInfo in interface thredds.inventory.MFile
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object