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

RenameResources

Table of contents
No headers

Converts resourceId values based on a simple lookup table. Resources that do not match a table entry are not affected.

Class

<bean class="com.cloudcruiser.batch.transform.RenameResources">

Properties

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

 

Sets a map of old resourceId to new resourceId used for conversion of certain resourceId values.

<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.transform.RenameResources">
      <property name="strict" value="false" />
      <property name="nameTable">
        <map>
          <entry key="5 Mbps" value="port_5Mbps" />
          <entry key="10 Mbps" value="port_10Mbps" />
          <entry key="20 Mbps" value="port_20Mbps" />
          <entry key="40 Mbps" value="port_40Mbps" />
          <entry key="80 Mbps" value="port_80Mbps" />
        </map>
      </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