Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Purpose: This file contains a list of External Data Sources such as FTP Servers. The login.alias attribute will be used within the RemoteSpecs.xml file. This file is located in the etc/examples folder and contains several great examples that you can tailor to your application. I have removed all un-used ExternalSources to make sure I don't go download files I don't want. The source.host doesn't contain the URI prefix (ftp://, http://) and there is NO trailing slash. The login.type takes care of the prefix.

Code Block
xml
xml
<sources>
    <source host="l4ftl01.larc.nasa.gov">
        <login type="ftp" alias="TESL2CO2">
            <username>anonymous</username>
            <password>user@host.com</password>
        </login>
    </source>
</sources>
Wiki Markup
\[CAS_PP_HOME\]/etc/

...

examples/RemoteSpecsFiles/RemoteSpecs.xml

Purpose: This file will first reference the aliases listed in the ExternalSources.xml file from the previous section. Then you can define one or more daemons. The daemon.alias must be listed in the ExternalSources.xml so the daemon will know where it should look for files. The propInfo and propFiles tell the daemon exactly what directories and files to retrieve. We will look at an example file nextneed to create an xml file called TESL2CO2.xml and place it in the propInfo.dir location. For simplicity I have kept the alias, propFiles and staging area the same (TESL2CO2).

Code Block
xml
xml
<remoteSpecs>
    <aliasSpecs>
        <aliasSpec file="[SNOWDSCAS_PP_HOME]/pushpulletc/policyexamples/ExternalSources/ExternalSources.xml"/>            
    </aliasSpecs>
    
    <daemons>
        <daemon alias="MOD09GAFtpTESL2CO2" active="yes">            
            <runInfo firstRunDateTime="2011-0412-11T0001T00:00:00Z" period="3m" runOnReboot="yes"/>
            <propInfo dir="[SNOWDSCAS_PP_HOME]/pushpulletc/policyexamples/DirStructXmlParserFiles">
                <propFiles regExp="MOD09GA\.h08v04TESL2CO2\.xml" parser="org.apache.oodt.cas.pushpull.filerestrictions.parsers.DirStructXmlParser"/>
            </propInfo>
            <dataInfo stagingArea="MOD09GATESL2CO2" deleteFromServer="no" queryElement="RetrievedFromLoc"/>
        </daemon>
    </daemons>
</remoteSpecs>