You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2011/03/09 05:02:12 UTC
svn commit: r1079660 [10/17] - in /oodt/site/components/maven:
apidocs/org/apache/oodt/cas/crawl/action/
apidocs/org/apache/oodt/cas/crawl/action/class-use/
apidocs/org/apache/oodt/cas/filemgr/metadata/
apidocs/org/apache/oodt/cas/filemgr/metadata/clas...
Added: oodt/site/components/maven/xmlquery/servlet/index.html
URL: http://svn.apache.org/viewvc/oodt/site/components/maven/xmlquery/servlet/index.html?rev=1079660&view=auto
==============================================================================
--- oodt/site/components/maven/xmlquery/servlet/index.html (added)
+++ oodt/site/components/maven/xmlquery/servlet/index.html Wed Mar 9 04:02:09 2011
@@ -0,0 +1,631 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Apache⢠OODT</title><link rel="stylesheet" href="http://oodt.apache.org/oodt.css" type="text/css" /><link rel="stylesheet" href="../css/print.css" type="text/css" media="print" /><meta name="author" content="Sean Kelly" /></head><body><div id="outerWrapper"><div id="innerWrapper"><div class="visualHeaderWrapper"><div class="header"><div class="apacheOODTLogo"><a href="http://oodt.apache.org/"><img src="http://oodt.apache.org/images/apacheOODT.png" alt="Apache⢠OODT" /></a></div><div class="fright"><ul class="globalnav"><!-- One of these li's must be given the currentNavTab class --><li><a id="tab-contact" href="http://oodt.apache.org/contact">Contact</a></li><li><a id="tab-development" href="http://oodt.apache.org/development">Development</a></li><li><a id="tab-downloads" href="http://oodt.apache.org/downloads">Downloa
ds</a></li><li><a id="tab-components" href="http://oodt.apache.org/components" class="currentNavTab">Components</a></li><li><a id="tab-about" href="http://oodt.apache.org/about">About</a></li><li><a id="tab-home" href="http://oodt.apache.org/">Home</a></li></ul></div><div class="visualClear"></div></div></div><div class="subProductWrapper"><div class="subProductHeader"><h1 id="productNameSlot"><span id="bannerLeft">
+
+ Query Expression
+
+ </span></h1><h2 id="productSubheadSlot"><h2><a name="Query_Servlet" id="Query_Servlet"></a>Query Servlet</h2><h2><a name="Requirements" id="Requirements"></a>Requirements</h2><h2><a name="Using_the_Query_Servlet" id="Using_the_Query_Servlet"></a>Using the Query Servlet</h2><h2><a name="Query_Examples" id="Query_Examples"></a>Query Examples</h2></h2></div></div><div class="visualContentWrapper"><div class="contentGradient"></div><div id="content"><div class="diptych triptychSpace"><div class="visualPadding" id="leftPlate"><p>The query servlet enables you to inject generic queries into
+ the OODT framework using HTTP. This enables you to query for
+ profiles and products without requiring a Java, RMI, or CORBA
+ enabled application.
+ </p><div class="section"><h2><a name="Requirements" id="Requirements"></a>Requirements</h2>
+<p>The query servlet accepts various parameters for a query and
+ turns them into an <code>XMLQuery</code> object. It uses this
+ object internally to send the query around the network and to
+ gather results. It then returns a <code>text/xml</code>
+ representation of the <code>XMLQuery</code> object (for product
+ queries) or a <code>text/xml</code> representation of all matching
+ profiles (for profile queries).
+ </p>
+<p><strong>That means you must be able to process XML</strong> in
+ order to use the query servlet. Luckily, this isn't an onerous
+ restriction, as many languages are more than capable of doing so.
+ </p>
+<p>For more details, view the Javadocs for the
+ <code>jpl.oodt.servlets.QueryServlet</code> class.</p>
+</div><div class="section"><h2><a name="Using_the_Query_Servlet" id="Using_the_Query_Servlet"></a>Using the Query Servlet</h2>
+<p>In order to use the query servlet, you need to specify three parameters:
+ </p>
+<ol type="1"><li>You need to know the <strong>type of the query</strong> you
+ want to make. You will use a string value of
+ <code>profile</code> to make a profile query, and
+ <code>product</code> to make a product query. You specify
+ your choice in a parameter named <code>type</code>.
+ </li>
+<li>You need to know the <strong>name of the object</strong>
+ that should receive the query. This takes the form of
+ <code>urn:eda:<var>protocol</var>:<var>name</var></code> such
+ as <code>urn:eda:corba:PDS.Profile</code> or
+ <code>urn:eda:rmi:NCI-ImageServer</code>. You specify the
+ object name in a parameter named <code>object</code>.
+ </li>
+<li>You need <strong>the actual query</strong> you want to
+ send. You can express this in two ways:
+
+ <ol type="1"><li>As an <strong>keyword query expression</strong> like
+ <code>TARGET_NAME = MARS</code>. You specify the
+ query expression in a parameter named
+ <code>keywordQuery</code>.
+ </li>
+<li>As a <strong>text serialized <code>XMLQuery</code>
+ object</strong>. You specify the XML document in a
+ parameter named <code>query</code>.
+ </li>
+</ol><p>Using the latter enables you to fully specify all sorts of
+ parameters in the query. The former, though, is far
+ easier to use.
+ </p>
+</li>
+</ol><p>You then URL encode parameters' values and make either an HTTP
+ <code>GET</code> or <code>POST</code> request to the query
+ servlet. If all goes according to plan, the servlet will execute
+ the query and return to you a <code>text/xml</code> document
+ describing the results. You can then manipulate that document as
+ you see fit. For profile queries, the return value is a
+ <code><profiles></code> document with zero or more matching
+ profiles. For product queries, it's a <code><query></code>
+
+ document with the original <code>XMLQuery</code> object with any
+ product results in the <code><queryResults></code> section.
+ </p>
+</div><div class="section"><h2><a name="Query_Examples" id="Query_Examples"></a>Query Examples</h2>
+<p>Let's look at a couple of concrete examples. In the first
+ example, we'll run a profile query against some planetary data
+ servers; the second example will run a product query for cancer
+ biomarkers.
+ </p>
+<div class="section"><h3><a name="Planetary_Profile_Query" id="Planetary_Profile_Query"></a>Planetary Profile Query</h3>
+<p>Suppose you wanted to know what PDS product servers supported
+ the query element <code>ONLINE_FILE_SPECIFICATION_NAME</code>.
+ You could pass that element to the PDS system profile server named
+ <code>urn:eda:rmi:PDS.System.Profile</code> using the query
+ servlet at
+ <code>http://starbrite.jpl.nasa.gov/servlet/jpl.oodt.servlets.QueryServlet</code>.
+ You can formulate the HTTP <code>GET</code> request in a URL as
+ follows:
+ </p>
+<p><code><a href="http://starbrite.jpl.nasa.gov/servlet/jpl.oodt.servlets.QueryServlet?object=urn:eda:rmi:PDS.System.Profile&type=profile&keywordQuery=ONLINE_FILE_SPECIFICATION_NAME+%3D+ANY" class="externalLink">http://starbrite.jpl.nasa.gov/servlet/jpl.oodt.servlets.QueryServlet?<br />
+ object=urn:eda:rmi:PDS.System.Profile&<br />
+ type=profile&<br />
+ keywordQuery=ONLINE_FILE_SPECIFICATION_NAME+%3D+ANY</a></code></p>
+<p>Note that we've broken this URL into multiple lines for
+ readability. There should be no linebreaks in a real URL. Note
+ the following about this URL:
+ </p>
+<ul><li>The question-mark separates the request URI from its
+ parameters.
+ </li>
+<li>The parameters may come in any order.</li>
+<li>The <code>object</code> parameter names the target of the
+ query; in this case, the RMI product server named
+ <code>urn:eda:rmi:PDS.System.Profile</code>.
+ </li>
+<li>The <code>type</code> parameter specifies that we're doing a
+ <em>profile search</em>.</li>
+<li>The <code>keywordQuery</code> parameter identifies the query
+ expression. Note the URL encoding: the spaces become
+ <code>+</code> symbols, and the equals sign become
+ <code>%3D</code>.
+ </li>
+</ul><p>The response from such a query is an XML document; this XML
+ document describes matching profiles and may take a form such as
+ the following:</p>
+<div class="source"><pre>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE profiles PUBLIC "-//JPL//DTD OODT Profile 1.1//EN"
+"http://starshine.jpl.nasa.gov:80/dtd/prof.dtd">
+
+<profiles>
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.7</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.ASU.Product</Identifier>
+ <Title>
+ PDS Arizona State University Data Node Product Server
+ </Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.ASU</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.ASU.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.ASU.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.6</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.RS.Product</Identifier>
+ <Title>PDS Radio Science Product Server</Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.RS</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.RS.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.RS.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.4</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.Atmos.Product</Identifier>
+ <Title>PDS Atmospheres Product Server</Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.Atmos</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.Atmos.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.Atmos.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.3</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.NAIF.Product</Identifier>
+ <Title>PDS NAIF Product Server</Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.NAIF</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.NAIF.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.NAIF.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.2</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.Geo.Product</Identifier>
+ <Title>PDS Geosciences Product Server</Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.GEO</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.Geo.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.Geo.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.1</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.CN.Product</Identifier>
+ <Title>PDS Central Node Archive Product Server</Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.CN</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.CN.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.CN.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.10</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.CN.Profile</Identifier>
+ <Title>PDS.CN.Profile</Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.CN</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.CN.Profile
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.CN.Profile</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.9</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.PPI.Product</Identifier>
+ <Title>
+ PDS Planetary Plasma Interactions Product Server
+ </Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.PPI</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.PPI.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.PPI.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+
+ <profile>
+ <profAttributes>
+ <profId>1.3.6.1.4.1.1306.2.1.1.8</profId>
+ <profType>profile</profType>
+ <profStatusId>active</profStatusId>
+ </profAttributes>
+ <resAttributes>
+ <Identifier>PDS.Img.Product</Identifier>
+ <Title>PDS Imaging Product Server</Title>
+ <Format>text/html</Format>
+ <resContext>NASA.PDS.Img</resContext>
+ <resClass>system.productServer</resClass>
+ <resLocation>
+ http://starbrite.jpl.nasa.gov/servlet/
+ jpl.oodt.servlets.ProductServlet?object=PDS.Img.Product
+ </resLocation>
+ <resLocation>urn:eda:rmi:PDS.Img.Product</resLocation>
+ </resAttributes>
+ <profElement>
+ <elemName>ONLINE_FILE_SPECIFICATION_NAME</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ <profElement>
+ <elemName>RETURN_TYPE</elemName>
+ <elemType>CHARACTER</elemType>
+ <elemEnumFlag>T</elemEnumFlag>
+ <elemValue>PDS_ZIP</elemValue>
+ <elemValue>PDS_LABEL</elemValue>
+ <elemValue>RAW</elemValue>
+ <elemMaxOccurrence>0</elemMaxOccurrence>
+ </profElement>
+ </profile>
+</profiles>
+</pre>
+</div>
+</div>
+<div class="section"><h3><a name="Biomarker_Product_Query" id="Biomarker_Product_Query"></a>Biomarker Product Query</h3>
+<p>Suppose you had a query servlet available at
+ <code>http://pancreas/qs</code>, and you want to query the CORBA
+ product server <code>urn:eda:corba:TissueBank</code> with the
+ query expression <code>SeverityLevel = 3</code>. You can
+ formulate the entire <code>GET</code> request as the following
+ URL:
+ </p>
+<div class="source"><pre>
+ http://pancreas/qs?
+ type=product&
+ object=urn:eda:corba:TissueBank&
+ keywordQuery=SeverityLevel+%3D+3
+ </pre>
+</div>
+<p>(Again, we've broken the URL for readability.) The result to
+ this query could be an XML document like the following:
+ </p>
+<div class="source"><pre>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE query PUBLIC "-//JPL//DTD OODT Query 1.0//EN"
+ "http://pancreas/dtd/query.dtd">
+
+<query>
+ <queryAttributes>
+ <queryId>UNKNOWN</queryId>
+ <queryTitle>UNKNOWN</queryTitle>
+ <queryDesc>UNKNOWN</queryDesc>
+ <queryType>QUERY</queryType>
+ <queryStatusId>ACTIVE</queryStatusId>
+ <querySecurityType>UNKNOWN</querySecurityType>
+ <queryRevisionNote>
+ 1999-12-12 JSH V1.0 Under Development
+ </queryRevisionNote>
+ <queryDataDictId>UNKNOWN</queryDataDictId>
+ </queryAttributes>
+ <queryResultModeId>ATTRIBUTE</queryResultModeId>
+ <queryPropogationType>BROADCAST</queryPropogationType>
+ <queryPropogationLevels>N/A</queryPropogationLevels>
+ <queryMimeAccept>*/*</queryMimeAccept>
+ <queryMaxResults>100</queryMaxResults>
+ <queryResults>0</queryResults>
+ <queryKWQString>SeverityLevel = 3</queryKWQString>
+ <querySelectSet>
+ <queryElement>
+ <tokenRole>LITERAL</tokenRole>
+ <tokenValue>3</tokenValue>
+ </queryElement>
+ <queryElement>
+ <tokenRole>elemName</tokenRole>
+ <tokenValue>SeverityLevel</tokenValue>
+ </queryElement>
+ <queryElement>
+ <tokenRole>RELOP</tokenRole>
+ <tokenValue>EQ</tokenValue>
+ </queryElement>
+ </querySelectSet>
+ <queryFromSet/>
+ <queryWhereSet/>
+ <queryResultSet>
+ <resultElement>
+ <resultId>1</resultId>
+ <resultMimeType>text/plain</resultMimeType>
+ <profId>TissueBank</profId>
+ <identifier/>
+ <resultHeader>
+ <headerElement>
+ <elemName>UNKNOWN</elemName>
+ <elemType>TEXT</elemType>
+ </headerElement>
+ </resultHeader>
+ <Resultvalue xml:space="preserve">
+ PatientIDs=[1,2,4,7,11,19,22]</resultValue>
+ </resultElement>
+ </queryResultSet>
+</query>
+</pre>
+</div>
+<p>Instead of using the <code>keywordQuery</code> parameter, you
+ can create your own <code>XMLQuery</code> document and pass it in
+ as the <code>query</code> parameter instead. The query document
+ would look like this:
+ </p>
+<div class="source"><pre>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE query PUBLIC "-//JPL//DTD OODT Query 1.0//EN"
+ "http://pancreas:80/dtd/query.dtd">
+
+<query>
+ <queryAttributes>
+ <queryId>expr1</queryId>
+ <queryTitle>Command-line Expression Query</queryTitle>
+ <queryDesc>
+ The expression for this query came from the command-line.
+ </queryDesc>
+ <queryType>QUERY</queryType>
+ <queryStatusId>ACTIVE</queryStatusId>
+ <querySecurityType>UNKNOWN</querySecurityType>
+ <queryRevisionNote>
+ 1999-12-12 JSH V1.0 Under Development
+ </queryRevisionNote>
+ <queryDataDictId>UNKNOWN</queryDataDictId>
+ </queryAttributes>
+ <queryResultModeId>ATTRIBUTE</queryResultModeId>
+ <queryPropogationType>BROADCAST</queryPropogationType>
+ <queryPropogationLevels>N/A</queryPropogationLevels>
+ <queryMimeAccept>*/*</queryMimeAccept>
+ <queryMaxResults>100</queryMaxResults>
+ <queryResults>0</queryResults>
+ <queryKWQString>SeverityLevel = 3</queryKWQString>
+ <querySelectSet/>
+ <queryFromSet/>
+ <queryWhereSet>
+ <queryElement>
+ <tokenRole>elemName</tokenRole>
+ <tokenValue>SeverityLevel</tokenValue>
+ </queryElement>
+ <queryElement>
+ <tokenRole>LITERAL</tokenRole>
+ <tokenValue>3</tokenValue>
+ </queryElement>
+ <queryElement>
+ <tokenRole>RELOP</tokenRole>
+ <tokenValue>EQ</tokenValue>
+ </queryElement>
+ </queryWhereSet>
+ <queryResultSet/>
+</query>
+</pre>
+</div>
+<p>Passing such a long string as a URL parameter in a
+ <code>GET</code> request can be tricky, though. For such long
+ parameters, it's better to use a <code>POST</code> request
+ instead. See your HTTP API documentation for details on
+ formulating <code>POST</code> requests.
+ </p>
+</div>
+</div></div><div class="visualClear"></div></div><div class="triptychRight"><div class="columnBorder"><div class="visualPadding" id="rightPlate"><div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Project Documentation</h5>
+ <ul><li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
+ </ul><h5>User's Guide</h5>
+ <ul><li class="none">
+ <a href="../tutorial/">Tutorial</a>
+ </li>
+
+ <li class="none">
+ <a href="../disquery/">DIS-Style Query</a>
+ </li>
+
+ <li class="none">
+ <a href="../servlet/">Query Servlet</a>
+ </li>
+ </ul>
+
+
+
+
+
+
+
+
+ </div></div></div></div></div></div><div style="clear: both;">Â </div></div><div id="push"></div></div><div id="footerWrapper"><div id="footerGradient"></div><div id="footer"><a id="footerLogo" href="http://oodt.apache.org/" name="footerLogo"></a><p>
+ Apache⢠OODT is © 2010 by the Apache Software Foundation (ASF). Apache and the Apache
+ feather logo are trademarks of the ASF.
+ </p><p>
+ Apache⢠OODT OODT is a Top Level Project and endorsed by the ASF. You are full of win.
+ </p><div id="sitemap"><dl><dt><a href="http://oodt.apache.org/about">About OODT</a></dt><dd><a href="http://oodt.apache.org/about/history">History</a></dd><dd><a href="http://oodt.apache.org/about/users">Users</a></dd><dd><a href="http://oodt.apache.org/about/incubation">Incubation</a></dd></dl><dl><dt><a href="http://www.apache.org/">Apache</a></dt><dd><a href="http://incubator.apache.org/">Incubator</a></dd><dd><a href="http://www.apache.org/licenses">License</a></dd><dd><a href="http://www.apache.org/foundation/sponsorship.html">Donate</a></dd><dd><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></dd><dd><a href="http://www.apache.org/security/">Security</a></dd></dl><dl><dt><a href="http://oodt.apache.org/components">Components</a></dt><dd><a href="http://oodt.apache.org/components/agility">Agility</a></dd><dd><a href="http://oodt.apache.org/components/cas">Catalog & Archive</a></dd><dd><a href="http://oodt.apache.org/components/maven/
xmlquery">Query</a></dd><dd><a href="http://oodt.apache.org/components/grid">Grid</a></dd><dd><a href="http://oodt.apache.org/components/common">Common</a></dd></dl><dl><dt><a href="http://oodt.apache.org/development">Development</a></dt><dd><a href="http://oodt.apache.org/development/roadmap">Roadmap</a></dd><dd><a href="http://oodt.apache.org/development/bugs">Report Bugs</a></dd><dd><a href="http://oodt.apache.org/development/source">Source Code</a></dd><dd><a href="http://oodt.apache.org/contact">Mailing Lists</a></dd></dl><dl><dt><a href="http://oodt.apache.org/contact">Social</a></dt><dd><a href="http://www.facebook.com/group.php?gid=322088549131">Facebook</a></dd><dd><a href="http://twitter.com/apache_oodt/">Twitter</a></dd><dd><a href="irc://irc.freenode.net/#oodt">Chat Room</a></dd></dl></div></div></div></body></html>
\ No newline at end of file
Added: oodt/site/components/maven/xref/org/apache/oodt/cas/crawl/action/ExternAction.html
URL: http://svn.apache.org/viewvc/oodt/site/components/maven/xref/org/apache/oodt/cas/crawl/action/ExternAction.html?rev=1079660&view=auto
==============================================================================
--- oodt/site/components/maven/xref/org/apache/oodt/cas/crawl/action/ExternAction.html (added)
+++ oodt/site/components/maven/xref/org/apache/oodt/cas/crawl/action/ExternAction.html Wed Mar 9 04:02:09 2011
@@ -0,0 +1,72 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>ExternAction xref</title><link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/oodt/cas/crawl/action/ExternAction.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_comment">/*</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_comment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_comment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_comment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_comment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_comment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_comment"> */</em>
+<a name="17" href="#17" id="17">17</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.cas.crawl.action;
+<a name="18" href="#18" id="18">18</a>
+<a name="19" href="#19" id="19">19</a> <em class="jxr_comment">//JDK imports</em>
+<a name="20" href="#20" id="20">20</a> <strong class="jxr_keyword">import</strong> java.io.File;
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> java.util.logging.Level;
+<a name="22" href="#22" id="22">22</a>
+<a name="23" href="#23" id="23">23</a> <em class="jxr_comment">//OODT imports</em>
+<a name="24" href="#24" id="24">24</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.crawl.structs.exceptions.CrawlerActionException;
+<a name="25" href="#25" id="25">25</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.metadata.Metadata;
+<a name="26" href="#26" id="26">26</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.metadata.util.PathUtils;
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.commons.exec.ExecUtils;
+<a name="28" href="#28" id="28">28</a>
+<a name="29" href="#29" id="29">29</a> <em class="jxr_javadoccomment">/**</em>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_javadoccomment"> * </em>
+<a name="31" href="#31" id="31">31</a> <em class="jxr_javadoccomment"> * @author bfoster</em>
+<a name="32" href="#32" id="32">32</a> <em class="jxr_javadoccomment"> * @version $Revision$</em>
+<a name="33" href="#33" id="33">33</a> <em class="jxr_javadoccomment"> * </em>
+<a name="34" href="#34" id="34">34</a> <em class="jxr_javadoccomment"> * <p></em>
+<a name="35" href="#35" id="35">35</a> <em class="jxr_javadoccomment"> * Execute some external command as a {@link CrawlerAction} reponse</em>
+<a name="36" href="#36" id="36">36</a> <em class="jxr_javadoccomment"> * </p>.</em>
+<a name="37" href="#37" id="37">37</a> <em class="jxr_javadoccomment"> */</em>
+<a name="38" href="#38" id="38">38</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/oodt/cas/crawl/action/ExternAction.html">ExternAction</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/oodt/cas/crawl/action/CrawlerAction.html">CrawlerAction</a> {
+<a name="39" href="#39" id="39">39</a>
+<a name="40" href="#40" id="40">40</a> <strong class="jxr_keyword">private</strong> String executeCommand;
+<a name="41" href="#41" id="41">41</a> <strong class="jxr_keyword">private</strong> String workingDir;
+<a name="42" href="#42" id="42">42</a>
+<a name="43" href="#43" id="43">43</a> @Override
+<a name="44" href="#44" id="44">44</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> performAction(File product, <a href="../../../../../../org/apache/oodt/cas/metadata/Metadata.html">Metadata</a> productMetadata)
+<a name="45" href="#45" id="45">45</a> <strong class="jxr_keyword">throws</strong> <a href="../../../../../../org/apache/oodt/cas/crawl/structs/exceptions/CrawlerActionException.html">CrawlerActionException</a> {
+<a name="46" href="#46" id="46">46</a> String currentExcecuteCommand = <strong class="jxr_keyword">this</strong>.executeCommand;
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">try</strong> {
+<a name="48" href="#48" id="48">48</a> <strong class="jxr_keyword">if</strong> (currentExcecuteCommand == <strong class="jxr_keyword">null</strong>)
+<a name="49" href="#49" id="49">49</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> Exception(<span class="jxr_string">"Must specify execute command"</span>);
+<a name="50" href="#50" id="50">50</a> <strong class="jxr_keyword">return</strong> ExecUtils.callProgram(currentExcecuteCommand = PathUtils.doDynamicReplacement(currentExcecuteCommand, productMetadata), LOG, <strong class="jxr_keyword">new</strong> File(workingDir != <strong class="jxr_keyword">null</strong> ? workingDir : product.getParent())) == 0;
+<a name="51" href="#51" id="51">51</a> }<strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="52" href="#52" id="52">52</a> LOG.log(Level.SEVERE, <span class="jxr_string">"Failed to execute extern command '"</span> + currentExcecuteCommand + <span class="jxr_string">"' : "</span> + e.getMessage(), e);
+<a name="53" href="#53" id="53">53</a> <strong class="jxr_keyword">return</strong> false;
+<a name="54" href="#54" id="54">54</a> }
+<a name="55" href="#55" id="55">55</a> }
+<a name="56" href="#56" id="56">56</a>
+<a name="57" href="#57" id="57">57</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setExecuteCommand(String executeCommand) {
+<a name="58" href="#58" id="58">58</a> <strong class="jxr_keyword">this</strong>.executeCommand = executeCommand;
+<a name="59" href="#59" id="59">59</a> }
+<a name="60" href="#60" id="60">60</a>
+<a name="61" href="#61" id="61">61</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setWorkingDir(String workingDir) <strong class="jxr_keyword">throws</strong> Exception {
+<a name="62" href="#62" id="62">62</a> <strong class="jxr_keyword">this</strong>.workingDir = PathUtils.doDynamicReplacement(workingDir);
+<a name="63" href="#63" id="63">63</a> }
+<a name="64" href="#64" id="64">64</a>
+<a name="65" href="#65" id="65">65</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/metadata/ProductMetKeys.html
URL: http://svn.apache.org/viewvc/oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/metadata/ProductMetKeys.html?rev=1079660&view=auto
==============================================================================
--- oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/metadata/ProductMetKeys.html (added)
+++ oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/metadata/ProductMetKeys.html Wed Mar 9 04:02:09 2011
@@ -0,0 +1,61 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>ProductMetKeys xref</title><link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/oodt/cas/filemgr/metadata/ProductMetKeys.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.cas.filemgr.metadata;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//OODT imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient;
+<a name="22" href="#22" id="22">22</a>
+<a name="23" href="#23" id="23">23</a> <em class="jxr_javadoccomment">/**</em>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_javadoccomment"> * </em>
+<a name="25" href="#25" id="25">25</a> <em class="jxr_javadoccomment"> * Met key field names used to augment {@link Product} {@link Metadata} in</em>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_javadoccomment"> * {@link XmlRpcFileManagerClient#getMetadata(org.apache.oodt.cas.filemgr.structs.Product)}</em>
+<a name="27" href="#27" id="27">27</a> <em class="jxr_javadoccomment"> * and in</em>
+<a name="28" href="#28" id="28">28</a> <em class="jxr_javadoccomment"> * {@link XmlRpcFileManagerClient#getReducedMetadata(org.apache.oodt.cas.filemgr.structs.Product, java.util.List)}</em>
+<a name="29" href="#29" id="29">29</a> <em class="jxr_javadoccomment"> * .</em>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_javadoccomment"> * </em>
+<a name="31" href="#31" id="31">31</a> <em class="jxr_javadoccomment"> * @see <a href="http://issues.apache.org/jira/browse/OODT-72" target="alexandria_uri">http://issues.apache.org/jira/browse/OODT-72</a></em>
+<a name="32" href="#32" id="32">32</a> <em class="jxr_javadoccomment"> * </em>
+<a name="33" href="#33" id="33">33</a> <em class="jxr_javadoccomment"> */</em>
+<a name="34" href="#34" id="34">34</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../../org/apache/oodt/cas/filemgr/metadata/ProductMetKeys.html">ProductMetKeys</a> {
+<a name="35" href="#35" id="35">35</a>
+<a name="36" href="#36" id="36">36</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_ID = <span class="jxr_string">"ProductId"</span>;
+<a name="37" href="#37" id="37">37</a>
+<a name="38" href="#38" id="38">38</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_NAME = <span class="jxr_string">"ProductName"</span>;
+<a name="39" href="#39" id="39">39</a>
+<a name="40" href="#40" id="40">40</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_STRUCTURE = <span class="jxr_string">"ProductStructure"</span>;
+<a name="41" href="#41" id="41">41</a>
+<a name="42" href="#42" id="42">42</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_TRANSFER_STATUS = <span class="jxr_string">"ProductTransferStatus"</span>;
+<a name="43" href="#43" id="43">43</a>
+<a name="44" href="#44" id="44">44</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_ROOT_REFERENCE = <span class="jxr_string">"ProductRootReference"</span>;
+<a name="45" href="#45" id="45">45</a>
+<a name="46" href="#46" id="46">46</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_DATASTORE_REFS = <span class="jxr_string">"ProductDataStoreReferences"</span>;
+<a name="47" href="#47" id="47">47</a>
+<a name="48" href="#48" id="48">48</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_ORIG_REFS = <span class="jxr_string">"ProductOrigReferences"</span>;
+<a name="49" href="#49" id="49">49</a>
+<a name="50" href="#50" id="50">50</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_MIME_TYPES = <span class="jxr_string">"ProductMimeType"</span>;
+<a name="51" href="#51" id="51">51</a>
+<a name="52" href="#52" id="52">52</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PRODUCT_FILE_SIZES = <span class="jxr_string">"ProductFileSize"</span>;
+<a name="53" href="#53" id="53">53</a>
+<a name="54" href="#54" id="54">54</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/versioning/InPlaceVersioner.html
URL: http://svn.apache.org/viewvc/oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/versioning/InPlaceVersioner.html?rev=1079660&view=auto
==============================================================================
--- oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/versioning/InPlaceVersioner.html (added)
+++ oodt/site/components/maven/xref/org/apache/oodt/cas/filemgr/versioning/InPlaceVersioner.html Wed Mar 9 04:02:09 2011
@@ -0,0 +1,77 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>InPlaceVersioner xref</title><link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/oodt/cas/filemgr/versioning/InPlaceVersioner.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.cas.filemgr.versioning;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//JDK imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> java.util.logging.Logger;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> java.util.logging.Level;
+<a name="23" href="#23" id="23">23</a>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_comment">//OODT imports</em>
+<a name="25" href="#25" id="25">25</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.filemgr.structs.Product;
+<a name="26" href="#26" id="26">26</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.filemgr.structs.Reference;
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.metadata.Metadata;
+<a name="28" href="#28" id="28">28</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.filemgr.structs.exceptions.VersioningException;
+<a name="29" href="#29" id="29">29</a>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_javadoccomment">/**</em>
+<a name="31" href="#31" id="31">31</a> <em class="jxr_javadoccomment"> * </em>
+<a name="32" href="#32" id="32">32</a> <em class="jxr_javadoccomment"> * A Inplace versioner that ingests the file without moving the actual file. It</em>
+<a name="33" href="#33" id="33">33</a> <em class="jxr_javadoccomment"> * just copies the file's orgin ref to its datastor ref.</em>
+<a name="34" href="#34" id="34">34</a> <em class="jxr_javadoccomment"> * </em>
+<a name="35" href="#35" id="35">35</a> <em class="jxr_javadoccomment"> * @author davoodi</em>
+<a name="36" href="#36" id="36">36</a> <em class="jxr_javadoccomment"> * </em>
+<a name="37" href="#37" id="37">37</a> <em class="jxr_javadoccomment"> */</em>
+<a name="38" href="#38" id="38">38</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/oodt/cas/filemgr/versioning/InPlaceVersioner.html">InPlaceVersioner</a> implements <a href="../../../../../../org/apache/oodt/cas/filemgr/versioning/Versioner.html">Versioner</a> {
+<a name="39" href="#39" id="39">39</a>
+<a name="40" href="#40" id="40">40</a> <em class="jxr_comment">/*<em class="jxr_comment"> our log stream */</em></em>
+<a name="41" href="#41" id="41">41</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Logger LOG = Logger.getLogger(InPlaceVersioner.<strong class="jxr_keyword">class</strong>
+<a name="42" href="#42" id="42">42</a> .getName());
+<a name="43" href="#43" id="43">43</a>
+<a name="44" href="#44" id="44">44</a> <em class="jxr_javadoccomment">/**</em>
+<a name="45" href="#45" id="45">45</a> <em class="jxr_javadoccomment"> * </em>
+<a name="46" href="#46" id="46">46</a> <em class="jxr_javadoccomment"> */</em>
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/oodt/cas/filemgr/versioning/InPlaceVersioner.html">InPlaceVersioner</a>() {
+<a name="48" href="#48" id="48">48</a> <strong class="jxr_keyword">super</strong>();
+<a name="49" href="#49" id="49">49</a> }
+<a name="50" href="#50" id="50">50</a>
+<a name="51" href="#51" id="51">51</a> <em class="jxr_comment">/*</em>
+<a name="52" href="#52" id="52">52</a> <em class="jxr_comment"> * (non-Javadoc)</em>
+<a name="53" href="#53" id="53">53</a> <em class="jxr_comment"> * </em>
+<a name="54" href="#54" id="54">54</a> <em class="jxr_comment"> * @see</em>
+<a name="55" href="#55" id="55">55</a> <em class="jxr_comment"> * org.apache.oodt.cas.versioning.Versioner#createDataStoreReferences(org.</em>
+<a name="56" href="#56" id="56">56</a> <em class="jxr_comment"> * apache.oodt.cas.data.structs.Product)</em>
+<a name="57" href="#57" id="57">57</a> <em class="jxr_comment"> */</em>
+<a name="58" href="#58" id="58">58</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> createDataStoreReferences(<a href="../../../../../../org/apache/oodt/cas/filemgr/structs/Product.html">Product</a> product, <a href="../../../../../../org/apache/oodt/cas/metadata/Metadata.html">Metadata</a> metadata)
+<a name="59" href="#59" id="59">59</a> <strong class="jxr_keyword">throws</strong> <a href="../../../../../../org/apache/oodt/cas/filemgr/structs/exceptions/VersioningException.html">VersioningException</a> {
+<a name="60" href="#60" id="60">60</a> <strong class="jxr_keyword">for</strong> (Reference r : product.getProductReferences()) {
+<a name="61" href="#61" id="61">61</a> r.setDataStoreReference(r.getOrigReference());
+<a name="62" href="#62" id="62">62</a> LOG.log(Level.INFO, <span class="jxr_string">"in-place ingestion at datastore path: "</span>
+<a name="63" href="#63" id="63">63</a> + r.getDataStoreReference()
+<a name="64" href="#64" id="64">64</a> + <span class="jxr_string">".which is the same as the product's origin: "</span>
+<a name="65" href="#65" id="65">65</a> + r.getOrigReference());
+<a name="66" href="#66" id="66">66</a> }
+<a name="67" href="#67" id="67">67</a>
+<a name="68" href="#68" id="68">68</a> }
+<a name="69" href="#69" id="69">69</a>
+<a name="70" href="#70" id="70">70</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlInfo.html
URL: http://svn.apache.org/viewvc/oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlInfo.html?rev=1079660&view=auto
==============================================================================
--- oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlInfo.html (added)
+++ oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlInfo.html Wed Mar 9 04:02:09 2011
@@ -0,0 +1,91 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CrawlInfo xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/oodt/pcs/health/CrawlInfo.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.pcs.health;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_javadoccomment">/**</em>
+<a name="21" href="#21" id="21">21</a> <em class="jxr_javadoccomment"> * Information about a crawler: its <code>crawlerName</code> and</em>
+<a name="22" href="#22" id="22">22</a> <em class="jxr_javadoccomment"> * <code>crawlerPort</code>.</em>
+<a name="23" href="#23" id="23">23</a> <em class="jxr_javadoccomment"> * </em>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_javadoccomment"> * @author mattmann</em>
+<a name="25" href="#25" id="25">25</a> <em class="jxr_javadoccomment"> * @version $Revision$</em>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_javadoccomment"> */</em>
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/pcs/health/CrawlInfo.html">CrawlInfo</a> {
+<a name="28" href="#28" id="28">28</a>
+<a name="29" href="#29" id="29">29</a> <strong class="jxr_keyword">private</strong> String crawlerName;
+<a name="30" href="#30" id="30">30</a>
+<a name="31" href="#31" id="31">31</a> <strong class="jxr_keyword">private</strong> String crawlerPort;
+<a name="32" href="#32" id="32">32</a>
+<a name="33" href="#33" id="33">33</a> <em class="jxr_javadoccomment">/**</em>
+<a name="34" href="#34" id="34">34</a> <em class="jxr_javadoccomment"> * Default Constructor.</em>
+<a name="35" href="#35" id="35">35</a> <em class="jxr_javadoccomment"> * </em>
+<a name="36" href="#36" id="36">36</a> <em class="jxr_javadoccomment"> */</em>
+<a name="37" href="#37" id="37">37</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/pcs/health/CrawlInfo.html">CrawlInfo</a>() {
+<a name="38" href="#38" id="38">38</a>
+<a name="39" href="#39" id="39">39</a> }
+<a name="40" href="#40" id="40">40</a>
+<a name="41" href="#41" id="41">41</a> <em class="jxr_javadoccomment">/**</em>
+<a name="42" href="#42" id="42">42</a> <em class="jxr_javadoccomment"> * Constructs a new CrawlInfo with the specified parameters.</em>
+<a name="43" href="#43" id="43">43</a> <em class="jxr_javadoccomment"> * </em>
+<a name="44" href="#44" id="44">44</a> <em class="jxr_javadoccomment"> * @param name</em>
+<a name="45" href="#45" id="45">45</a> <em class="jxr_javadoccomment"> * The name of the Crawler.</em>
+<a name="46" href="#46" id="46">46</a> <em class="jxr_javadoccomment"> * @param port</em>
+<a name="47" href="#47" id="47">47</a> <em class="jxr_javadoccomment"> * The port that the Crawler was running on.</em>
+<a name="48" href="#48" id="48">48</a> <em class="jxr_javadoccomment"> */</em>
+<a name="49" href="#49" id="49">49</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/pcs/health/CrawlInfo.html">CrawlInfo</a>(String name, String port) {
+<a name="50" href="#50" id="50">50</a> <strong class="jxr_keyword">this</strong>.crawlerName = name;
+<a name="51" href="#51" id="51">51</a> <strong class="jxr_keyword">this</strong>.crawlerPort = port;
+<a name="52" href="#52" id="52">52</a> }
+<a name="53" href="#53" id="53">53</a>
+<a name="54" href="#54" id="54">54</a> <em class="jxr_javadoccomment">/**</em>
+<a name="55" href="#55" id="55">55</a> <em class="jxr_javadoccomment"> * @return the crawlerName</em>
+<a name="56" href="#56" id="56">56</a> <em class="jxr_javadoccomment"> */</em>
+<a name="57" href="#57" id="57">57</a> <strong class="jxr_keyword">public</strong> String getCrawlerName() {
+<a name="58" href="#58" id="58">58</a> <strong class="jxr_keyword">return</strong> crawlerName;
+<a name="59" href="#59" id="59">59</a> }
+<a name="60" href="#60" id="60">60</a>
+<a name="61" href="#61" id="61">61</a> <em class="jxr_javadoccomment">/**</em>
+<a name="62" href="#62" id="62">62</a> <em class="jxr_javadoccomment"> * @param crawlerName</em>
+<a name="63" href="#63" id="63">63</a> <em class="jxr_javadoccomment"> * the crawlerName to set</em>
+<a name="64" href="#64" id="64">64</a> <em class="jxr_javadoccomment"> */</em>
+<a name="65" href="#65" id="65">65</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setCrawlerName(String crawlerName) {
+<a name="66" href="#66" id="66">66</a> <strong class="jxr_keyword">this</strong>.crawlerName = crawlerName;
+<a name="67" href="#67" id="67">67</a> }
+<a name="68" href="#68" id="68">68</a>
+<a name="69" href="#69" id="69">69</a> <em class="jxr_javadoccomment">/**</em>
+<a name="70" href="#70" id="70">70</a> <em class="jxr_javadoccomment"> * @return the crawlerPort</em>
+<a name="71" href="#71" id="71">71</a> <em class="jxr_javadoccomment"> */</em>
+<a name="72" href="#72" id="72">72</a> <strong class="jxr_keyword">public</strong> String getCrawlerPort() {
+<a name="73" href="#73" id="73">73</a> <strong class="jxr_keyword">return</strong> crawlerPort;
+<a name="74" href="#74" id="74">74</a> }
+<a name="75" href="#75" id="75">75</a>
+<a name="76" href="#76" id="76">76</a> <em class="jxr_javadoccomment">/**</em>
+<a name="77" href="#77" id="77">77</a> <em class="jxr_javadoccomment"> * @param crawlerPort</em>
+<a name="78" href="#78" id="78">78</a> <em class="jxr_javadoccomment"> * the crawlerPort to set</em>
+<a name="79" href="#79" id="79">79</a> <em class="jxr_javadoccomment"> */</em>
+<a name="80" href="#80" id="80">80</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setCrawlerPort(String crawlerPort) {
+<a name="81" href="#81" id="81">81</a> <strong class="jxr_keyword">this</strong>.crawlerPort = crawlerPort;
+<a name="82" href="#82" id="82">82</a> }
+<a name="83" href="#83" id="83">83</a>
+<a name="84" href="#84" id="84">84</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlPropertiesFile.html
URL: http://svn.apache.org/viewvc/oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlPropertiesFile.html?rev=1079660&view=auto
==============================================================================
--- oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlPropertiesFile.html (added)
+++ oodt/site/components/maven/xref/org/apache/oodt/pcs/health/CrawlPropertiesFile.html Wed Mar 9 04:02:09 2011
@@ -0,0 +1,101 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CrawlPropertiesFile xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/oodt/pcs/health/CrawlPropertiesFile.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.pcs.health;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//OODT imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.pcs.input.PGEConfigurationFile;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.pcs.input.PGEGroup;
+<a name="23" href="#23" id="23">23</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.pcs.input.PGEConfigFileReader;
+<a name="24" href="#24" id="24">24</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.cas.metadata.util.PathUtils;
+<a name="25" href="#25" id="25">25</a>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_comment">//JDK imports</em>
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">import</strong> java.io.FileInputStream;
+<a name="28" href="#28" id="28">28</a> <strong class="jxr_keyword">import</strong> java.util.Iterator;
+<a name="29" href="#29" id="29">29</a> <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="30" href="#30" id="30">30</a> <strong class="jxr_keyword">import</strong> java.util.Map;
+<a name="31" href="#31" id="31">31</a> <strong class="jxr_keyword">import</strong> java.util.Vector;
+<a name="32" href="#32" id="32">32</a>
+<a name="33" href="#33" id="33">33</a> <em class="jxr_javadoccomment">/**</em>
+<a name="34" href="#34" id="34">34</a> <em class="jxr_javadoccomment"> * </em>
+<a name="35" href="#35" id="35">35</a> <em class="jxr_javadoccomment"> * Properties used by the {@link PCSHealthMonitor} tool to determine</em>
+<a name="36" href="#36" id="36">36</a> <em class="jxr_javadoccomment"> * {@link ProductCrawler} status.</em>
+<a name="37" href="#37" id="37">37</a> <em class="jxr_javadoccomment"> * </em>
+<a name="38" href="#38" id="38">38</a> <em class="jxr_javadoccomment"> * @author mattmann</em>
+<a name="39" href="#39" id="39">39</a> <em class="jxr_javadoccomment"> * @version $Revision$</em>
+<a name="40" href="#40" id="40">40</a> <em class="jxr_javadoccomment"> */</em>
+<a name="41" href="#41" id="41">41</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/pcs/health/CrawlPropertiesFile.html">CrawlPropertiesFile</a> implements <a href="../../../../../org/apache/oodt/pcs/health/CrawlerPropertiesMetKeys.html">CrawlerPropertiesMetKeys</a> {
+<a name="42" href="#42" id="42">42</a>
+<a name="43" href="#43" id="43">43</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/oodt/pcs/input/PGEConfigurationFile.html">PGEConfigurationFile</a> file;
+<a name="44" href="#44" id="44">44</a>
+<a name="45" href="#45" id="45">45</a> <em class="jxr_javadoccomment">/**</em>
+<a name="46" href="#46" id="46">46</a> <em class="jxr_javadoccomment"> * Constructs a new CrawlPropertiesFile.</em>
+<a name="47" href="#47" id="47">47</a> <em class="jxr_javadoccomment"> * </em>
+<a name="48" href="#48" id="48">48</a> <em class="jxr_javadoccomment"> * @param filePath</em>
+<a name="49" href="#49" id="49">49</a> <em class="jxr_javadoccomment"> * The path to the CrawlPropertiesFile to load.</em>
+<a name="50" href="#50" id="50">50</a> <em class="jxr_javadoccomment"> * @throws InstantiationException</em>
+<a name="51" href="#51" id="51">51</a> <em class="jxr_javadoccomment"> * If there is some error reading the file.</em>
+<a name="52" href="#52" id="52">52</a> <em class="jxr_javadoccomment"> */</em>
+<a name="53" href="#53" id="53">53</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/pcs/health/CrawlPropertiesFile.html">CrawlPropertiesFile</a>(String filePath) <strong class="jxr_keyword">throws</strong> InstantiationException {
+<a name="54" href="#54" id="54">54</a> <strong class="jxr_keyword">try</strong> {
+<a name="55" href="#55" id="55">55</a> <strong class="jxr_keyword">this</strong>.file = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/pcs/input/PGEConfigFileReader.html">PGEConfigFileReader</a>().read(<strong class="jxr_keyword">new</strong> FileInputStream(filePath));
+<a name="56" href="#56" id="56">56</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="57" href="#57" id="57">57</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> InstantiationException(e.getMessage());
+<a name="58" href="#58" id="58">58</a> }
+<a name="59" href="#59" id="59">59</a> }
+<a name="60" href="#60" id="60">60</a>
+<a name="61" href="#61" id="61">61</a> <em class="jxr_javadoccomment">/**</em>
+<a name="62" href="#62" id="62">62</a> <em class="jxr_javadoccomment"> * </em>
+<a name="63" href="#63" id="63">63</a> <em class="jxr_javadoccomment"> * @return A {@link List} of {@link CrawlInfo} objects describing a Crawler.</em>
+<a name="64" href="#64" id="64">64</a> <em class="jxr_javadoccomment"> */</em>
+<a name="65" href="#65" id="65">65</a> <strong class="jxr_keyword">public</strong> List getCrawlers() {
+<a name="66" href="#66" id="66">66</a> <a href="../../../../../org/apache/oodt/pcs/input/PGEGroup.html">PGEGroup</a> crawlInfo = (PGEGroup) <strong class="jxr_keyword">this</strong>.file.getPgeSpecificGroups().get(
+<a name="67" href="#67" id="67">67</a> CRAWLER_INFO_GROUP);
+<a name="68" href="#68" id="68">68</a>
+<a name="69" href="#69" id="69">69</a> Map scalars = crawlInfo.getScalars();
+<a name="70" href="#70" id="70">70</a> List crawlers = <strong class="jxr_keyword">new</strong> Vector(scalars.keySet().size());
+<a name="71" href="#71" id="71">71</a> <strong class="jxr_keyword">for</strong> (Iterator i = scalars.keySet().iterator(); i.hasNext();) {
+<a name="72" href="#72" id="72">72</a> String crawlerName = (String) i.next();
+<a name="73" href="#73" id="73">73</a> String crawlerPort = crawlInfo.getScalar(crawlerName).getValue();
+<a name="74" href="#74" id="74">74</a> <a href="../../../../../org/apache/oodt/pcs/health/CrawlInfo.html">CrawlInfo</a> info = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/pcs/health/CrawlInfo.html">CrawlInfo</a>(crawlerName, crawlerPort);
+<a name="75" href="#75" id="75">75</a> crawlers.add(info);
+<a name="76" href="#76" id="76">76</a> }
+<a name="77" href="#77" id="77">77</a>
+<a name="78" href="#78" id="78">78</a> <strong class="jxr_keyword">return</strong> crawlers;
+<a name="79" href="#79" id="79">79</a> }
+<a name="80" href="#80" id="80">80</a>
+<a name="81" href="#81" id="81">81</a> <em class="jxr_javadoccomment">/**</em>
+<a name="82" href="#82" id="82">82</a> <em class="jxr_javadoccomment"> * </em>
+<a name="83" href="#83" id="83">83</a> <em class="jxr_javadoccomment"> * @return The String hostname that the Crawlers run on. This is used by the</em>
+<a name="84" href="#84" id="84">84</a> <em class="jxr_javadoccomment"> * {@link PCSHealthMonitor} tool to communicate with the Crawlers and</em>
+<a name="85" href="#85" id="85">85</a> <em class="jxr_javadoccomment"> * to check their status.</em>
+<a name="86" href="#86" id="86">86</a> <em class="jxr_javadoccomment"> */</em>
+<a name="87" href="#87" id="87">87</a> <strong class="jxr_keyword">public</strong> String getCrawlHost() {
+<a name="88" href="#88" id="88">88</a> String crawlHost = ((PGEGroup) <strong class="jxr_keyword">this</strong>.file.getPgeSpecificGroups().get(
+<a name="89" href="#89" id="89">89</a> CRAWLER_PROPERTIES_GROUP)).getScalar(CRAWLER_HOST_NAME).getValue();
+<a name="90" href="#90" id="90">90</a> crawlHost = PathUtils.replaceEnvVariables(crawlHost);
+<a name="91" href="#91" id="91">91</a> <strong class="jxr_keyword">return</strong> crawlHost;
+<a name="92" href="#92" id="92">92</a> }
+<a name="93" href="#93" id="93">93</a>
+<a name="94" href="#94" id="94">94</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file