public class CrawlableDatasetAmazonS3 extends CrawlableDatasetFile
| Constructor and Description |
|---|
CrawlableDatasetAmazonS3(S3URI s3uri) |
CrawlableDatasetAmazonS3(S3URI s3uri,
java.lang.Object configObject) |
CrawlableDatasetAmazonS3(S3URI s3uri,
java.lang.Object configObject,
ThreddsS3Client threddsS3Client) |
CrawlableDatasetAmazonS3(java.lang.String path) |
CrawlableDatasetAmazonS3(java.lang.String path,
java.lang.Object configObject) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache() |
boolean |
equals(java.lang.Object other) |
boolean |
exists()
Return true if the dataset represented by this CrawlableDataset actually
exists, null if it does not or an I/O error occurs.
|
CrawlableDataset |
getDescendant(java.lang.String relativePath)
Return the requested descendant of this dataset.
|
java.io.File |
getFile()
Provide access to the file that this CrawlableDataset represents.
|
java.lang.String |
getName()
Returns the dataset name, i.e., the last part of the dataset path.
|
CrawlableDataset |
getParentDataset()
Returns the parent CrawlableDataset or null if this dataset has no parent.
|
java.lang.String |
getPath()
Returns the dataset path.
|
S3URI |
getS3URI() |
ThreddsS3Client |
getThreddsS3Client() |
int |
hashCode() |
boolean |
isCollection()
Return true if the dataset is a collection dataset.
|
java.util.Date |
lastModified()
Returns the date that the dataset was last modified.
|
long |
length()
Returns the size of the dataset, in bytes.
|
java.util.List<CrawlableDataset> |
listDatasets()
Returns the list of CrawlableDatasets contained in this collection dataset.
|
static void |
setDefaultThreddsS3Client(ThreddsS3Client threddsS3Client) |
java.lang.String |
toString() |
getConfigObject, listDatasetspublic CrawlableDatasetAmazonS3(java.lang.String path)
public CrawlableDatasetAmazonS3(java.lang.String path,
java.lang.Object configObject)
public CrawlableDatasetAmazonS3(S3URI s3uri)
public CrawlableDatasetAmazonS3(S3URI s3uri, java.lang.Object configObject)
public CrawlableDatasetAmazonS3(S3URI s3uri, java.lang.Object configObject, ThreddsS3Client threddsS3Client)
public static void setDefaultThreddsS3Client(ThreddsS3Client threddsS3Client)
public static void clearCache()
public S3URI getS3URI()
public ThreddsS3Client getThreddsS3Client()
public java.io.File getFile()
CrawlableDatasetFilegetFile in class CrawlableDatasetFilenull if it could not be obtained.public java.lang.String getPath()
CrawlableDatasetgetPath in interface CrawlableDatasetgetPath in class CrawlableDatasetFilepublic java.lang.String getName()
CrawlableDatasetgetName in interface CrawlableDatasetgetName in class CrawlableDatasetFilepublic CrawlableDataset getParentDataset()
CrawlableDatasetgetParentDataset in interface CrawlableDatasetgetParentDataset in class CrawlableDatasetFilepublic CrawlableDataset getDescendant(java.lang.String relativePath)
CrawlableDatasetgetDescendant in interface CrawlableDatasetgetDescendant in class CrawlableDatasetFilerelativePath - the path, relative to this dataset, of the requested dataset.public boolean exists()
CrawlableDatasetexists in interface CrawlableDatasetexists in class CrawlableDatasetFilepublic boolean isCollection()
CrawlableDatasetisCollection in interface CrawlableDatasetisCollection in class CrawlableDatasetFilepublic java.util.List<CrawlableDataset> listDatasets() throws java.io.IOException
CrawlableDatasetlistDatasets in interface CrawlableDatasetlistDatasets in class CrawlableDatasetFilejava.io.IOException - if an I/O error occurs while accessing the children datasets.public long length()
length in interface CrawlableDatasetlength in class CrawlableDatasetFilepublic java.util.Date lastModified()
lastModified in interface CrawlableDatasetlastModified in class CrawlableDatasetFilepublic java.lang.String toString()
toString in class CrawlableDatasetFilepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object