Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > HP collectors > HPCSA3Collector


Table of contents
No headers

An XML data collector with input composed from CSA REST responses which are already in XML format. A sequence of calls is necessary in order to gather pertinent information together into a single document for effective data mapping. For each subscription, the subscription detail document provided by CSA is used as the base input document for collection. Each subscription request is added to this document and, optionally, the service instance data.


<bean class="com.cloudcruiser.batch.collect.hp.HPCSA3Collector">


<property name="dataSourceConfig" value="value
" />

The HPCSA data source for REST API.

<property name="dumpMessages" value="false
" />

Sets a flag to print HTTP request and response content to the console.

<property name="feedConfig" ref="feedConfig
" />

Sets the feed configuration for this collector. The feed configuration maps input data to CC-Record content.

<property name="printEntityXML" value="false
" />

Sets a flag to print each compiled subscription document to the console prior to processing.

<property name="xmlOutput" value="xmlOutput
" />

Sets a resource for writing out each document prior to processing to assist with data mapping and debugging. This should not be left active in a production environment.

The resulting file content may need some attention before it is compatible with an XML editor since there will be multiple root nodes. It is recommended to pull out documents of interest into a separate file for inspection using XML tools. Namespace definitions are not included.

Spring Batch XML Example

<batch:step id="collect" next="assemble">
    <bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">
      <property name="active" value="true" />
      <property name="feedName" value="plano" />
      <property name="collector">
        <bean class="com.cloudcruiser.batch.collect.hp.HPCSA3Collector">
          <property name="dataSourceConfig" ref="ds" />
          <property name="feedConfig" ref="feedConfig" />
          <property name="dumpMessages" value="false" />
          <property name="printEntityXML" value="false" />
          <property name="xmlOutput" value="${env.processDir}/subscription_debug_${env.selectDate}.xml"/>
Last modified


This page has no custom tags.


This page has no classifications.

 (c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP