Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Universal collectors > Flat File > SmartFlatFileCollector


Table of contents
No headers

Collects usage data from a text file based on a configuration provided by FlatFileFeedConfig .


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


<property name="resource” value="inputResource

Sets the input resource. This must point to a text file.

<property name="strict” value="false">

When true , input is required and a missing input file will result in an exception during execution. Otherwise, a missing input will result in a warning.

Spring Batch XML Example


<batch:step id="collect">




<bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">


<property name="active" value="true" />


<property name="feedName" value="capad" />


<property name="collector">


<bean class="">


<property name="resourcePattern" value="file:${env.usageDir}/*-${env.selectDate}.csv" />


<property name="identifierName" value="usagefile" />


<property name="delegate">


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


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















Last modified


This page has no custom tags.


This page has no classifications.

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