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 > CreateResourceFromConstant

CreateResourceFromConstant

Table of contents
No headers

Creates a new resource from a constant value.

Class

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

Properties

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

Sets the overwrite.

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

Sets the target resource.

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

Sets the constant value.

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.CreateResourceFromConstant">
            <property name="targetResource" value="cpusec"/>
            <property name="constantValue" value="100"/>
            <property name="active" value="true"/>
            <property name="overwrite" value="false"/>
          </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