Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Universal collectors > JSON > SmartJsonCollector


Table of contents
No headers

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


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


<property name="feedConfig" value=" feedConfig ">

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

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

Sets the input resource. The input resource must be a JSON file.

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

When true , the 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 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.SmartJsonCollector">
          <property name="feedConfig" ref="feedConfig"/>
          <property name="strict" value="true"/>
          <property name="resource" value="file:${env.usageDir}/samples/json_sample.log"/>
Last modified


This page has no custom tags.


This page has no classifications.

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