Print to Error (Aspire 2)

From wiki.searchtechnologies.com
Jump to: navigation, search

For Information on Aspire 3.1 Click Here


Print to Error (Aspire 2)
Factory Name  com.searchtechnologies.aspire:aspire-tools
subType  printToError
Inputs  The entire job
Outputs  The job is written either to system error, or to a file.

The Print To Error Stage component is a debugging stage which prints the Job plus the job's object data either to the error stream or to a file.

Configuration

Element Type Default Description
printContent boolean false If true, prints the object['contentBytes'] either to the error stream or to the output file. The object['contentBytes'] may be the location where raw file data is stored, if it is not being read via an input stream.
outputFileName String null Specifies the file name to which the job (and content bytes, if specified) will be written instead of the system error output.
outputOnDebugOnly boolean false If true, all output functionality is disabled unless debugging is turned on for this component. This allows the component to be configured in the pipeline, but "turned off" by default. The component can then be turned on by using the web interface to turn on debugging for this component.

Example Configuration

Simple

<component name="printToError" subType="printToError" factoryName="aspire-tools"/>

Complex

<component name="printToFile" subType="printToError" factoryName="aspire-tools">
  <printContent>true</printContent>
  <outputFile>arcDebug.out</outputFile>
  <outputOnDebugOnly>true</outputOnDebugOnly>
</component>

Example Output

PRINT-TO-ERROR(component=/feedOneExample/standard-pipe-manager/printToFile,jobId=null): 

<doc>
    <fetchUrl>http://www.searchtechnologies.com</fetchUrl>
    <httpResponse code="200" source="FetchURLStage">OK</httpResponse>
    <protocol source="FetchURLStage/protocol">http</protocol>
    <host source="FetchURLStage/host">www.searchtechnologies.com</host>
    <mimeType source="FetchURLStage/mimeType">text/html</mimeType>
    <encoding source="FetchURLStage/encoding">utf-8</encoding>
    <extension source="FetchURLStage">
        <field name="status">HTTP/1.1 200 OK</field>
        <field name="Date">Wed, 09 Dec 2009 23:52:25 GMT</field>
        <field name="Server">Microsoft-IIS/6.0</field>
        <field name="X-Powered-By">ASP.NET</field>
        <field name="X-AspNet-Version">2.0.50727</field>
        <field name="Set-Cookie">ASP.NET_SessionId=orgtug55fexqos2cyu3re155; path=/; HttpOnly</field>
        <field name="Cache-Control">private</field>
        <field name="Content-Type">text/html; charset=utf-8</field>
        <field name="Content-Length">9607</field>
    </extension>
    <title source="ExtractTextStage/title">Search Technologies: The independent enterprise search experts</title>
    <description source="ExtractTextStage/description">We advise companies on enterprise search product selection, and we provide efficient, cost effective implementation and integration services. Search Technologies are the expert in the search space</description>
    <language source="ExtractTextStage/language">en</language>
    <extension source="ExtractTextStage">
        <field name="Content-Language">en</field>
        <field name="Content-Encoding">ISO-8859-1</field>
        <field name="resourceName">http://www.searchtechnologies.com</field>
    </extension>
    <content source="ExtractTextStage"><![CDATA[	Home


	About Us	Executive Team

	Careers

.
.
.
    </content>
    <domainName source="ExtractDomainImpl">searchtechnologies.com</domainName>
</doc>