|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProxyDatasetHandler
The ProxyDatasetHandler interface allows implementors to define a proxy CrawlableDataset, how its corresponding InvDataset should be added to collection InvDatasets, and how the proxy CrawlableDataset maps to the underlying concrete CrawlableDataset. This interface is used by both thredds.cataloggen.CollectionLevelScanner and thredds.catalog.InvDatasetScan. In CollectionLevelScanner, it is used to add proxy datasets to the InvCatalog being generated. In InvDatasetScan, it is used to map (proxy) dataset requests to the underlying CrawlableDataset. NOTE: todo Would this be better named AliasDatasetHandler???
Method Summary | |
---|---|
CrawlableDataset |
createProxyDataset(CrawlableDataset parent)
Create a new dataset to add to the parent collection dataset. |
InvCrawlablePair |
getActualDataset(List possibleDatasets)
Determine the InvCrawlablePair from the given dataset collection (java.util.List) being proxied by this ProxyDatasetHandler. |
String |
getActualDatasetName(InvCrawlablePair actualDataset,
String baseName)
|
Object |
getConfigObject()
Return the configuration object. |
int |
getProxyDatasetLocation(CrawlableDataset parent,
int collectionDatasetSize)
Return an integer which indicates the location/index at which the new dataset should be added to the parent collection dataset. |
String |
getProxyDatasetName()
Return the name of the proxy dataset. |
InvService |
getProxyDatasetService(CrawlableDataset parent)
Return the InvService to be used by the InvDataset that corresponds to the created dataset. |
boolean |
isProxyDatasetResolver()
|
Method Detail |
---|
String getProxyDatasetName()
CrawlableDataset createProxyDataset(CrawlableDataset parent)
parent
- the collection dataset in which to add the dataset being created.
InvService getProxyDatasetService(CrawlableDataset parent)
parent
- the collection dataset in which to add the dataset being created.
int getProxyDatasetLocation(CrawlableDataset parent, int collectionDatasetSize)
parent
- the collection dataset in which to add the dataset being created.collectionDatasetSize
- the number of datasets currentlyin the parent collection dataset.
boolean isProxyDatasetResolver()
InvCrawlablePair getActualDataset(List possibleDatasets)
possibleDatasets
- a list of InvCrawlablePair objects representing a dataset collection.
String getActualDatasetName(InvCrawlablePair actualDataset, String baseName)
Object getConfigObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |