Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > VMware collectors > VCloudSnapshotCollector


Table of contents
No headers

Collects current entity items as individual XML documents for mapping to CC-Record content as defined by VCloudSnapshotFeedConfig . Data is requested from the vCloud REST API.


<bean class="com.cloudcruiser.batch.collect.vmware.vcloud.VCloudSnapshotCollector">


<property name="dataSourceConfig " ref="dataSourceConfig
" />

Sets the connection information necessary to access the REST API of a vCloud Director server via HTTP or HTTPS.

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

Sets the feed configuration for this collector. The feed configuration can specify a subscription filter. XML results are mapped into CC-Record files.

<property name="dumpMessages" ref="false" />

When true , this enables the printing of HTTP request and response contents for debugging. The default is false .

<property name="httpProxy" ref="httpProxy
" />

Sets URI for HTTP proxy address. For example,

<property name="printEntityXML" value="false" />

When true , this enables the printing of API results in XML format for debugging. The default is false .

<property name="xmlOutput" value="xmlOutput
" />

Sets a resource for writing out each document prior to processing to assist with data mapping and debugging. This should not be left active in a production environment.

The resulting file content may need some attention before it is compatible with an XML editor since there will be multiple root nodes. It is recommended to pull out documents of interest into a separate file for inspection using XML tools. Namespace definitions are not included.

Spring Batch XML Example

<batch:step id="collect">
    <bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">
      <property name="active" value="true" />
      <property name="feedName" value="default" />
      <!-- unique feed file per execution -->
      <property name="singleFeedPerDay" value="false" />
      <property name="collector">
        <bean class="com.cloudcruiser.batch.collect.vmware.vcloud.VCloudSnapshotCollector">
          <property name="dataSourceConfig" ref="dataSource" />
          <property name="feedConfig" ref="feedConfig" />
          <property name="dumpMessages" value="false" />
          <property name="printEntityXML" value="false" />
Last modified


This page has no custom tags.


This page has no classifications.

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