...
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.
Code Block |
---|
|
<sources>
<source host="e4ftl01.cr.usgs.gov">
<login type="ftp" alias="MOD09GAFtp">
<username>anonymous</username>
<password>user@host.com</password>
</login>
</source>
</sources>
|
Wiki Markup |
---|
\[CAS_PP_HOME\]/policy/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 next.
Code Block |
---|
|
<remoteSpecs>
<aliasSpecs>
<aliasSpec file="[SNOWDS_HOME]/pushpull/policy/ExternalSources/ExternalSources.xml"/>
</aliasSpecs>
<daemons>
<daemon alias="MOD09GAFtp" active="yes">
<runInfo firstRunDateTime="2011-04-11T00:00:00Z" period="3m" runOnReboot="yes"/>
<propInfo dir="[SNOWDS_HOME]/pushpull/policy/DirStructXmlParserFiles">
<propFiles regExp="MOD09GA\.h08v04\.xml" parser="org.apache.oodt.cas.pushpull.filerestrictions.parsers.DirStructXmlParser"/>
</propInfo>
<dataInfo stagingArea="MOD09GA" deleteFromServer="no" queryElement="RetrievedFromLoc"/>
</daemon>
</daemons>
</remoteSpecs>
|