Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 3 > Batch XML Reference > Universal collectors > XML > SmartXmlCollector

SmartXmlCollector

Table of contents
No headers

A CC-Record reader that collects usage data from an XML resource based on a configuration provided by XmlFeedConfig.

Class

<bean class="com.cloudcruiser.batch.collect.SmartXmlCollector">

Properties

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

Sets the feed configuration for this collector. The feed configuration defines the input record set and maps fields into CC-Record content.

<property name="resource" value="resourceFile
">

The input resource. resourceFile must be an .xml file.

<property name="strict" value="strictSelect
">

strictSelect can be set to either true or false. When true, input is required and a missing input file will result in an exception during execution. Otherwise, the missing input will result in a warning.

Spring Batch Example

<batch:step id="collect" next="assemble">
  <batch:tasklet>
    <bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">
      <property name="active" value="true"/>
      <property name="feedName" value="eastRegion"/>
      <property name="collector">
        <bean class="com.cloudcruiser.batch.collect.SmartXmlCollector">
          <property name="feedConfig" ref="feedConfig"/>
          <property name="strict" value="true"/>
          <property name="resource" value="file:${env.usageDir}/samples/services.xml"/>
        </bean>
      </property>
    </bean>
  </batch:tasklet>
</batch:step>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP