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 > Flat File > SmartFlatFileCollector

SmartFlatFileCollector

Table of contents
No headers

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

Class

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

Properties

 
<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">

 

<batch:tasklet>

 

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

 

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

 

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

 

<property name="collector">

 

<bean class="com.cloudcruiser.batch.io.MultiFileCCRecordReader">

 

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

 

</bean>

 

</property>

 

</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