oodt-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov>
Subject [FAQ] Can we have multiple preconditions for a mime type in the crawler
Date Wed, 16 Nov 2011 03:42:56 GMT
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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Mime
View raw message