Home > Cloud Cruiser 3 > Batch XML Reference > VMware collectors > VCloudSnapshotCollector

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.

Class

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

Properties

<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, http://127.0.0.1:8888

<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">
  <batch:tasklet>
    <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" />
        </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