public class MFileS3
extends java.lang.Object
implements thredds.inventory.MFile
MFile for objects stored on AWS S3 compatible object stores.| Modifier and Type | Class and Description |
|---|---|
static class |
MFileS3.Provider |
| Constructor and Description |
|---|
MFileS3(CdmS3Uri s3Uri) |
MFileS3(CdmS3Uri s3Uri,
long len,
long lm) |
MFileS3(java.lang.String s3Uri) |
MFileS3(java.lang.String s3Uri,
long len,
long lm) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(thredds.inventory.MFile o) |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAuxInfo() |
long |
getLastModified() |
long |
getLength() |
java.lang.String |
getName() |
thredds.inventory.MFile |
getParent() |
java.lang.String |
getPath() |
int |
hashCode() |
boolean |
isDirectory() |
void |
setAuxInfo(java.lang.Object auxInfo) |
long |
updateLastModified()
Update last modified by fetching from a head request
|
long |
updateLength()
Update file length by fetching from a head request
|
public MFileS3(java.lang.String s3Uri)
throws java.io.IOException
java.io.IOExceptionpublic MFileS3(CdmS3Uri s3Uri)
public MFileS3(java.lang.String s3Uri,
long len,
long lm)
throws java.io.IOException
java.io.IOExceptionpublic MFileS3(CdmS3Uri s3Uri, long len, long lm)
public long getLastModified()
getLastModified in interface thredds.inventory.MFilepublic long updateLastModified()
public long getLength()
getLength in interface thredds.inventory.MFilepublic long updateLength()
public boolean isDirectory()
isDirectory in interface thredds.inventory.MFilepublic java.lang.String getPath()
getPath in interface thredds.inventory.MFilepublic java.lang.String getName()
getName in interface thredds.inventory.MFile@Nullable
public thredds.inventory.MFile getParent()
throws java.io.IOException
getParent in interface thredds.inventory.MFilejava.io.IOExceptionpublic int compareTo(thredds.inventory.MFile o)
compareTo in interface java.lang.Comparable<thredds.inventory.MFile>compareTo in interface thredds.inventory.MFile@Nullable public java.lang.Object getAuxInfo()
getAuxInfo in interface thredds.inventory.MFilepublic void setAuxInfo(java.lang.Object auxInfo)
setAuxInfo in interface thredds.inventory.MFilepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object