You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oodt.apache.org by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov> on 2011/11/16 04:42:56 UTC

[FAQ] Can we have multiple preconditions for a mime type in the crawler

Hi Folks,

This question just came up on the JPL internal lists, so wanted to share with everyone else.

> Hi All,
> 
> I am wondering if we can have multiple preconditions for a mime type in
> the crawler. Something like:
> 
> <preCondComparators>
>   <preCondComparator id="Precondition(1)"/>
>   <preCondComparator id="Precondition(2)"/>
> 
>      </preCondComparators>

Here is the answer:

> 
> You sure can.  Here is an example I just pulled from the Crawler Config on LMMP.
> 
>        <mime type="product/dem">
>                <extractor class="gov.nasa.jpl.lmmp.extractors.GenMetExtractor">
>                        <config file="[CAS_CRAWLER_HOME]/conf/extractor/dem.properties" envReplace="true"/>
>                        <preCondComparators>
>                                <preCondComparator id="SemaphoreFileExists"/>
>                                <preCondComparator id="CreateFGDCFile"/>
>                                <preCondComparator id="FGDCFileExists"/>
>                                <preCondComparator id="CheckProductUnique"/>
>                                <preCondComparator id="CheckFGDCValid"/>
>                        </preCondComparators>
>                </extractor>
>        </mime>
> 
> Hope this helps.  
> 


Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++