Package thredds.crawlabledataset.filter
Class LastModifiedLimitFilter
- java.lang.Object
-
- thredds.crawlabledataset.filter.LastModifiedLimitFilter
-
- All Implemented Interfaces:
CrawlableDatasetFilter
public class LastModifiedLimitFilter extends Object implements CrawlableDatasetFilter
Accept datasets whose last modified date is at least the given number of milliseconds in the past.
-
-
Constructor Summary
Constructors Constructor Description LastModifiedLimitFilter(long lastModifiedLimitInMillis)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(CrawlableDataset dataset)
Accept datasets whose last modified date is at least the last modified limit of milliseconds in the past.Object
getConfigObject()
Return the configuration object.long
getLastModifiedLimitInMillis()
-
-
-
Method Detail
-
accept
public boolean accept(CrawlableDataset dataset)
Accept datasets whose last modified date is at least the last modified limit of milliseconds in the past.- Specified by:
accept
in interfaceCrawlableDatasetFilter
- Parameters:
dataset
- the dataset to filter- Returns:
- true if the datasets last modified date is at least lastModifiedLimitInMillis in the past.
-
getConfigObject
public Object getConfigObject()
Description copied from interface:CrawlableDatasetFilter
Return the configuration object.- Specified by:
getConfigObject
in interfaceCrawlableDatasetFilter
- Returns:
- the configuration Object (may be null).
-
getLastModifiedLimitInMillis
public long getLastModifiedLimitInMillis()
-
-