Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 3 > Batch XML Reference > Transform processors > NormalizeUnknownResources

NormalizeUnknownResources

Table of contents
No headers

Converts an unknown resource to a well known resource with the option of preserving the original resource name in a new identifier. This processor might encounter a resource conflict when renaming the unknown resource. If this occurs, a new record is created containing all identifiers from the original record along with the renamed resource and, optionally, one new identifier. The original unknown resource is no longer present in the data either way. When strict processing is enabled, a transform exception occurs if a record does not have any resource matching the given pattern.

Class

<bean class=”com.cloudcruiser.batch.transform.NormalizeUnknownResources”>

Properties

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

Sets a regular expression for the resource name pattern to be normalized. This expression can contain a capture group to specify what portion of the original resource name should be preserved as an identifier. The entire name is preserved when no capture group is present.

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

Sets the well known resource name to hold value(s) from matching resources.

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

Sets the name of an identifier to preserve each resource name that is converted to normal name. By default, no new identifier name is defined and therefore the original resource name is lost.

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

Sets flag for strict processing mode. When active, a record with no matching resource results in a processing exception. Otherwise, no such checks are performed. The default is false .

Spring Batch XML Example

<batch:step id="transform" next="charge">
  <batch:tasklet>      
    <bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
      <property name="processors">
        <list>
          <bean class="com.cloudcruiser.batch.transform.NormalizeUnknownResources">
            <property name="active" value="true"/>
            <property name="resourcePattern" value="network\.(.*IN.*)"/>
            <property name="targetResource" value="internalio"/>
            <property name="targetIdentifier" value="network"/>
            <property name="exceptionProcessing" value="true"/>
            <property name="strict" value="true"/>
          </bean>
        </list>
      </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