|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthredds.catalog.InvDataset
thredds.catalog.InvDatasetImpl
thredds.catalog.InvCatalogRef
thredds.catalog.InvDatasetScan
public class InvDatasetScan
Represents server-side information on how to scan a collection of datasets for catalog generation.
Used by the THREDDS Data Server (TDS) to automatically generate catalogs.
Typically built from the information given by a datasetScan element in a TDS config catalog.
Usage notes:
Should be thread safe except that the above two usage notes are not enforced.
Field Summary |
---|
Fields inherited from class thredds.catalog.InvDataset |
---|
gc, tc |
Constructor Summary | |
---|---|
InvDatasetScan(InvCatalogImpl catalog,
InvDatasetImpl parent,
java.lang.String name,
java.lang.String path,
java.lang.String scanLocation,
java.lang.String filter,
boolean addDatasetSize,
java.lang.String addLatest,
boolean sortOrderIncreasing,
java.lang.String datasetNameMatchPattern,
java.lang.String startTimeSubstitutionPattern,
java.lang.String duration)
|
|
InvDatasetScan(InvCatalogImpl catalog,
InvDatasetImpl parent,
java.lang.String name,
java.lang.String path,
java.lang.String scanLocation,
java.lang.String filter,
boolean addDatasetSize,
java.lang.String addLatest,
boolean sortOrderIncreasing,
java.lang.String datasetNameMatchPattern,
java.lang.String startTimeSubstitutionPattern,
java.lang.String duration,
long lastModifiedLimit)
Constructor. |
|
InvDatasetScan(InvDatasetImpl parent,
java.lang.String name,
java.lang.String path,
java.lang.String scanLocation,
java.lang.String id,
InvDatasetScan from)
|
|
InvDatasetScan(InvDatasetImpl parent,
java.lang.String name,
java.lang.String path,
java.lang.String scanLocation,
java.lang.String configClassName,
java.lang.Object configObj,
thredds.crawlabledataset.CrawlableDatasetFilter filter,
thredds.crawlabledataset.CrawlableDatasetLabeler identifier,
thredds.crawlabledataset.CrawlableDatasetLabeler namer,
boolean addDatasetSize,
thredds.crawlabledataset.CrawlableDatasetSorter sorter,
java.util.Map proxyDatasetHandlers,
java.util.List childEnhancerList,
thredds.cataloggen.CatalogRefExpander catalogRefExpander)
|
Method Summary | |
---|---|
boolean |
getAddDatasetSize()
|
thredds.cataloggen.CatalogRefExpander |
getCatalogRefExpander()
|
java.util.List |
getChildEnhancerList()
|
java.lang.String |
getCrDsClassName()
|
java.lang.Object |
getCrDsConfigObj()
|
thredds.crawlabledataset.CrawlableDatasetFilter |
getFilter()
|
thredds.crawlabledataset.CrawlableDatasetLabeler |
getIdentifier()
|
java.lang.String |
getInvalidMessage()
|
thredds.crawlabledataset.CrawlableDatasetLabeler |
getNamer()
|
java.lang.String |
getPath()
|
java.util.Map |
getProxyDatasetHandlers()
|
java.lang.String |
getScanLocation()
|
thredds.crawlabledataset.CrawlableDatasetSorter |
getSorter()
|
boolean |
isRead()
|
boolean |
isValid()
|
InvCatalogImpl |
makeCatalogForDirectory(java.lang.String orgPath,
java.net.URI baseURI)
Try to build a catalog for the given path by scanning the location associated with this InvDatasetScan. |
InvCatalog |
makeLatestCatalogForDirectory(java.lang.String orgPath,
java.net.URI baseURI)
Deprecated. Instead use makeProxyDsResolver() which provides more general proxy dataset handling. |
InvCatalogImpl |
makeProxyDsResolverCatalog(java.lang.String path,
java.net.URI baseURI)
Try to build a catalog for the given resolver path by scanning the location associated with this InvDatasetScan. |
thredds.crawlabledataset.CrawlableDataset |
requestCrawlableDataset(java.lang.String path)
Return the CrawlableDataset for the given path, null if this InvDatasetScan does not allow (filters out) the requested CrawlableDataset. |
static void |
setCatalogServletName(java.lang.String catServletName)
|
static void |
setContext(java.lang.String c)
|
void |
setScanLocation(java.lang.String scanLocation)
Resets the location being scanned (DO NOT USE THIS METHOD, "public by accident"). |
java.lang.String |
translatePathToLocation(java.lang.String dsPath)
Return the CrawlableDataset path/location that corresponds to the given dataset path. |
Methods inherited from class thredds.catalog.InvCatalogRef |
---|
equals, findDatasetByName, findProperty, findService, finish, getAccess, getAccess, getAlias, getAuthority, getCollectionType, getContributors, getCreators, getDataFormatType, getDatasets, getDataType, getDates, getDocumentation, getDocumentation, getFullName, getGeospatialCoverage, getID, getKeywords, getMetadata, getMetadata, getName, getParent, getProjects, getProperties, getProxyDataset, getPublishers, getServiceDefault, getTimeCoverage, getUniqueID, getURI, getUrlPath, getUserProperty, getVariables, getXlinkHref, hasAccess, hashCode, hasNestedDatasets, isHarvest, readAsynch, release, setXlinkHref |
Methods inherited from class thredds.catalog.InvDataset |
---|
findAccess, getCatalogUrl, getHistory, getParentCatalog, getProcessing, getRestrictAccess, getRights, getSubsetUrl, getSummary, getVariables |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InvDatasetScan(InvDatasetImpl parent, java.lang.String name, java.lang.String path, java.lang.String scanLocation, java.lang.String id, InvDatasetScan from)
public InvDatasetScan(InvCatalogImpl catalog, InvDatasetImpl parent, java.lang.String name, java.lang.String path, java.lang.String scanLocation, java.lang.String filter, boolean addDatasetSize, java.lang.String addLatest, boolean sortOrderIncreasing, java.lang.String datasetNameMatchPattern, java.lang.String startTimeSubstitutionPattern, java.lang.String duration)
public InvDatasetScan(InvCatalogImpl catalog, InvDatasetImpl parent, java.lang.String name, java.lang.String path, java.lang.String scanLocation, java.lang.String filter, boolean addDatasetSize, java.lang.String addLatest, boolean sortOrderIncreasing, java.lang.String datasetNameMatchPattern, java.lang.String startTimeSubstitutionPattern, java.lang.String duration, long lastModifiedLimit)
catalog
- containing catalogparent
- parent datasetname
- dataset namepath
- url pathscanLocation
- scan this directoryfilter
- RegExp match on nameaddDatasetSize
- add a size elementaddLatest
- add a latest elementsortOrderIncreasing
- sortdatasetNameMatchPattern
- dataset namingstartTimeSubstitutionPattern
- time range using the file nameduration
- time range using the file namelastModifiedLimit
- only use datasets whose lastModified() time is at least this many msecs in the past. Ignore if <= 0public InvDatasetScan(InvDatasetImpl parent, java.lang.String name, java.lang.String path, java.lang.String scanLocation, java.lang.String configClassName, java.lang.Object configObj, thredds.crawlabledataset.CrawlableDatasetFilter filter, thredds.crawlabledataset.CrawlableDatasetLabeler identifier, thredds.crawlabledataset.CrawlableDatasetLabeler namer, boolean addDatasetSize, thredds.crawlabledataset.CrawlableDatasetSorter sorter, java.util.Map proxyDatasetHandlers, java.util.List childEnhancerList, thredds.cataloggen.CatalogRefExpander catalogRefExpander)
Method Detail |
---|
public static void setContext(java.lang.String c)
public static void setCatalogServletName(java.lang.String catServletName)
public java.lang.String getPath()
public java.lang.String getScanLocation()
public void setScanLocation(java.lang.String scanLocation)
Used by DataRootHandler to allow scanning an aliased directory ("content").
scanLocation
- the scan location.public java.lang.String getCrDsClassName()
public java.lang.Object getCrDsConfigObj()
public thredds.crawlabledataset.CrawlableDatasetFilter getFilter()
public thredds.crawlabledataset.CrawlableDatasetLabeler getIdentifier()
public thredds.crawlabledataset.CrawlableDatasetLabeler getNamer()
public thredds.crawlabledataset.CrawlableDatasetSorter getSorter()
public java.util.Map getProxyDatasetHandlers()
public boolean getAddDatasetSize()
public java.util.List getChildEnhancerList()
public thredds.cataloggen.CatalogRefExpander getCatalogRefExpander()
public boolean isValid()
public java.lang.String getInvalidMessage()
public java.lang.String translatePathToLocation(java.lang.String dsPath)
dsPath
- a datasetScan dsPath that
public thredds.crawlabledataset.CrawlableDataset requestCrawlableDataset(java.lang.String path) throws java.io.IOException
This method can handle requests for regular datasets and proxy datasets.
path
- the path of the requested CrawlableDataset
java.io.IOException
- if an I/O error occurs while locating the children datasets.
java.lang.IllegalArgumentException
- if the given path is not a descendant of (or the same as) this InvDatasetScan collection level.public InvCatalogImpl makeCatalogForDirectory(java.lang.String orgPath, java.net.URI baseURI)
orgPath
- the part of the baseURI that is the pathbaseURI
- the base URL for the catalog, used to resolve relative URLs.
public InvCatalogImpl makeProxyDsResolverCatalog(java.lang.String path, java.net.URI baseURI)
path
- the part of the baseURI that is the pathbaseURI
- the base URL for the catalog, used to resolve relative URLs.
public InvCatalog makeLatestCatalogForDirectory(java.lang.String orgPath, java.net.URI baseURI)
makeProxyDsResolver()
which provides more general proxy dataset handling.
orgPath
- the part of the baseURI that is the pathbaseURI
- the base URL for the catalog, used to resolve relative URLs.
public boolean isRead()
isRead
in class InvCatalogRef
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |