Home > Cloud Cruiser 3 > Batch XML Reference > HP collectors > HPCSA3CatalogImportTasklet

HPCSA3CatalogImportTasklet

Table of contents
No headers

Creates or updates resource records to support charging for CSA Service Offering Subscriptions. For each Catalog in CSA, Service Offerings are imported as resources grouped by Category. Initial REST calls are made using the CSA-Provider admin account as the requesting user in order to get an inventory of CSA users. Then a series of calls are made per user to locate all Catalogs and Offerings available from CSA. Each Catalog can be shared across users and the appropriate logic is applied to avoid requesting the same Offering detail more than once per execution.

Class

<bean class="com.cloudcruiser.batch.collect.hp.HPCSA3CatalogImportTasklet">

Properties

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

Sets an HPCSADataSourceConfig object to access the REST API of a CSA system. A data source must be set in order to provide a REST endpoint along with a username and password for transport authentication.

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

Sets a debug flag to print HTTP request and response content to the console. The default is false .

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

Sets a flag to control inclusion of the option set name from CSA as part of the option resource description. When true, optionSetNamePrefix is appended along with the option set name to the base offering display name before appending the specific option name. For example, if the option set is "Disk Size" and the option name is "2GB", then the resulting description would be "OfferingName - Disk Size: 2GB" or "OfferingName - Disk Size: 2GB" depending on the value set for includeOptionSetName , and assuming default prefix values. The default is false .

<property name="initialModifier" value="INIT" />

Sets text for modifying both resourceId and description values to manage initial subscription costs as a discreet resource. The default is initial .

<property name="optionNamePrefix" value=": " />

Sets text to include before literal option display name as a delimiter when building the overall resource description for a Service Offering Option. The defaults is ": ".

<property name="optionSetNamePrefix" value=" - " />

Sets text to include before the literal option set name as a delimiter when building the overall resource description for a Service Offering Option. This has no effect when includeOptionSetName is false . The default is " - ".

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

Sets flag to control behavior of import and the ability to make modification to resources using the application. A passthrough resource is read only and continuously updated from CSA to stay current. This assumes that pricing is managed in CSA. When this flag is false , only new resources are imported to avoid overwriting possible changes.

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

Sets text for modifying both resourceId and description values to manage recurrent subscription costs as a discreet resource. This defaults to an empty string.

Spring Batch XML Example

<batch:step id="loadCustomers" next="loadCatalog">
<batch:step id="loadCatalog" next="assembly">
  <batch:tasklet>
    <bean class="com.cloudcruiser.batch.collect.hp.HPCSA3CatalogImportTasklet">
      <property name="active" value="true" />
      <property name="dataSourceConfig" ref="dsAPI" />
      <property name="passThrough" value="true" />
      <property name="initialModifier" value="INIT" />
      <property name="recurrentModifier" value="" />
      <property name="includeOptionSetName" value="false" />
      <property name="optionSetNamePrefix" value=" - " />
      <property name="optionNamePrefix" value=": " />
      <property name="dumpMessages" value="false" />
    </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