Package thredds.inventory.s3
Class MFileS3
- java.lang.Object
-
- thredds.inventory.s3.MFileS3
-
- All Implemented Interfaces:
Comparable<thredds.inventory.MFile>,thredds.inventory.MFile
public class MFileS3 extends Object implements thredds.inventory.MFile
ImplementsMFilefor objects stored on AWS S3 compatible object stores.- Since:
- 5.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMFileS3.Provider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(thredds.inventory.MFile o)booleanequals(Object o)ObjectgetAuxInfo()longgetLastModified()longgetLength()StringgetName()thredds.inventory.MFilegetParent()StringgetPath()inthashCode()booleanisDirectory()voidsetAuxInfo(Object auxInfo)longupdateLastModified()Update last modified by fetching from a head requestlongupdateLength()Update file length by fetching from a head request
-
-
-
Constructor Detail
-
MFileS3
public MFileS3(String s3Uri) throws IOException
- Throws:
IOException
-
MFileS3
public MFileS3(CdmS3Uri s3Uri)
-
MFileS3
public MFileS3(String s3Uri, long len, long lm) throws IOException
- Throws:
IOException
-
MFileS3
public MFileS3(CdmS3Uri s3Uri, long len, long lm)
-
-
Method Detail
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfacethredds.inventory.MFile
-
updateLastModified
public long updateLastModified()
Update last modified by fetching from a head request
-
getLength
public long getLength()
- Specified by:
getLengthin interfacethredds.inventory.MFile
-
updateLength
public long updateLength()
Update file length by fetching from a head request
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfacethredds.inventory.MFile
-
getPath
public String getPath()
- Specified by:
getPathin interfacethredds.inventory.MFile
-
getName
public String getName()
- Specified by:
getNamein interfacethredds.inventory.MFile
-
getParent
@Nullable public thredds.inventory.MFile getParent() throws IOException- Specified by:
getParentin interfacethredds.inventory.MFile- Throws:
IOException
-
compareTo
public int compareTo(thredds.inventory.MFile o)
- Specified by:
compareToin interfaceComparable<thredds.inventory.MFile>- Specified by:
compareToin interfacethredds.inventory.MFile
-
getAuxInfo
@Nullable public Object getAuxInfo()
- Specified by:
getAuxInfoin interfacethredds.inventory.MFile
-
setAuxInfo
public void setAuxInfo(Object auxInfo)
- Specified by:
setAuxInfoin interfacethredds.inventory.MFile
-
-