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, listDatasets
public 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()
CrawlableDatasetFile
getFile
in class CrawlableDatasetFile
null
if it could not be obtained.public java.lang.String getPath()
CrawlableDataset
getPath
in interface CrawlableDataset
getPath
in class CrawlableDatasetFile
public java.lang.String getName()
CrawlableDataset
getName
in interface CrawlableDataset
getName
in class CrawlableDatasetFile
public CrawlableDataset getParentDataset()
CrawlableDataset
getParentDataset
in interface CrawlableDataset
getParentDataset
in class CrawlableDatasetFile
public CrawlableDataset getDescendant(java.lang.String relativePath)
CrawlableDataset
getDescendant
in interface CrawlableDataset
getDescendant
in class CrawlableDatasetFile
relativePath
- the path, relative to this dataset, of the requested dataset.public boolean exists()
CrawlableDataset
exists
in interface CrawlableDataset
exists
in class CrawlableDatasetFile
public boolean isCollection()
CrawlableDataset
isCollection
in interface CrawlableDataset
isCollection
in class CrawlableDatasetFile
public java.util.List<CrawlableDataset> listDatasets() throws java.io.IOException
CrawlableDataset
listDatasets
in interface CrawlableDataset
listDatasets
in class CrawlableDatasetFile
java.io.IOException
- if an I/O error occurs while accessing the children datasets.public long length()
length
in interface CrawlableDataset
length
in class CrawlableDatasetFile
public java.util.Date lastModified()
lastModified
in interface CrawlableDataset
lastModified
in class CrawlableDatasetFile
public java.lang.String toString()
toString
in class CrawlableDatasetFile
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object