Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Universal collectors > XML > 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.


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


<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">
    <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"/>
Last modified


This page has no custom tags.


This page has no classifications.

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