Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > HP collectors > HPIOCollector


Table of contents
No headers

Collects service data from an HP Matrix Operating Environment using MOE's infrastructure orchestration (IO) interfaces. Data mapping is based on a configuration provided by HPIOFeedConfig . This collector is designed to query current managed services. It is not intended for collecting historical usage data.


<bean class=”com.cloudcruiser.batch.collect.hp.HPIOCollector”>


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

Sets the connection information necessary to access the API of an HP IO server via HTTP or HTTPS.

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

Sets a flag to enable or disable printing HTTP request and response contents. This is used for debugging.

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

Sets the feed configuration for this collector. The feed configuration defines the IO entity to collect and maps results into CC-Record content.

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

Sets a flag to enable or disable printing API results in XML format. 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" next="assemble">
    <bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">
      <property name="active" value="true" />
      <property name="feedName" value="plano" />
      <property name="singleFeedPerDay" value="false" />
      <property name="collector">
        <bean class="com.cloudcruiser.batch.collect.hp.HPIOCollector">
          <property name="dataSourceConfig">
            <bean class="com.cloudcruiser.batch.collect.hp.HPIODataSourceConfig">
              <property name="endpoint" value="" />
              <property name="username" value="username" />
              <property name="password" value="password" />
          <property name="feedConfig">
            <!-- empty feed config will result in default service mappings -->
            <bean class="com.cloudcruiser.batch.collect.hp.HPIOFeedConfig" />
Last modified


This page has no custom tags.


This page has no classifications.

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