public class LatestCompleteProxyDsHandler extends java.lang.Object implements ProxyDatasetHandler
Constructor and Description |
---|
LatestCompleteProxyDsHandler(java.lang.String latestName,
boolean locateAtTopOrBottom,
InvService service,
boolean isResolver,
long lastModifiedLimit)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CrawlableDataset |
createProxyDataset(CrawlableDataset parent)
Create a new dataset to add to the parent collection dataset.
|
InvCrawlablePair |
getActualDataset(java.util.List atomicDsInfo)
Determine the InvCrawlablePair from the given dataset collection
(java.util.List) being proxied by this ProxyDatasetHandler.
|
java.lang.String |
getActualDatasetName(InvCrawlablePair actualDataset,
java.lang.String baseName) |
java.lang.Object |
getConfigObject()
Return the configuration object.
|
long |
getLastModifiedLimit() |
java.lang.String |
getName() |
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.
|
java.lang.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.
|
java.lang.String |
getServiceName() |
boolean |
isLocateAtTopOrBottom() |
boolean |
isProxyDatasetResolver() |
public LatestCompleteProxyDsHandler(java.lang.String latestName, boolean locateAtTopOrBottom, InvService service, boolean isResolver, long lastModifiedLimit)
latestName
- the name to be used for all latest dataset, if null, the default is "latest.xml".locateAtTopOrBottom
- indicates where to locate the latest dataset (true - locate on top; false - locate on bottom).service
- the InvService used by the created dataset.lastModifiedLimit
- only use datasets whose lastModified() time is at least this many minutes in the pastpublic java.lang.String getName()
public boolean isLocateAtTopOrBottom()
public java.lang.String getServiceName()
public long getLastModifiedLimit()
public java.lang.String getProxyDatasetName()
ProxyDatasetHandler
getProxyDatasetName
in interface ProxyDatasetHandler
public java.lang.Object getConfigObject()
ProxyDatasetHandler
getConfigObject
in interface ProxyDatasetHandler
public CrawlableDataset createProxyDataset(CrawlableDataset parent)
ProxyDatasetHandler
createProxyDataset
in interface ProxyDatasetHandler
parent
- the collection dataset in which to add the dataset being created.public InvService getProxyDatasetService(CrawlableDataset parent)
ProxyDatasetHandler
getProxyDatasetService
in interface ProxyDatasetHandler
parent
- the collection dataset in which to add the dataset being created.public int getProxyDatasetLocation(CrawlableDataset parent, int collectionDatasetSize)
ProxyDatasetHandler
getProxyDatasetLocation
in interface ProxyDatasetHandler
parent
- the collection dataset in which to add the dataset being created.collectionDatasetSize
- the number of datasets currentlyin the parent collection dataset.public boolean isProxyDatasetResolver()
isProxyDatasetResolver
in interface ProxyDatasetHandler
public InvCrawlablePair getActualDataset(java.util.List atomicDsInfo)
ProxyDatasetHandler
getActualDataset
in interface ProxyDatasetHandler
atomicDsInfo
- a list of InvCrawlablePair objects representing a dataset collection.public java.lang.String getActualDatasetName(InvCrawlablePair actualDataset, java.lang.String baseName)
getActualDatasetName
in interface ProxyDatasetHandler