thredds.crawlabledataset.filter
Class LastModifiedLimitFilter

java.lang.Object
  extended by 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.

Author:
edavis

Constructor Summary
LastModifiedLimitFilter(long lastModifiedLimitInMillis)
          Constructor.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastModifiedLimitFilter

public LastModifiedLimitFilter(long lastModifiedLimitInMillis)
Constructor.

Parameters:
lastModifiedLimitInMillis - accept datasets whose lastModified() time is at least this many msecs in the past
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 interface CrawlableDatasetFilter
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 interface CrawlableDatasetFilter
Returns:
the configuration Object (may be null).

getLastModifiedLimitInMillis

public long getLastModifiedLimitInMillis()


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.