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 > Universal collectors > JDBC > JdbcDataSourceConfig

JdbcDataSourceConfig

Table of contents
No headers

Specifies a JDBC data source for data collection. A jar filename may be specified to load the appropriate driver when necessary.

Class

<bean class=”com.cloudcruiser.batch.collect.JdbcDataSourceConfig”>

Properties

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

Specifies the driver name.

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

Specifies the driver class name.

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

Sets the endpoint URL for the data source.

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

Specifies the user name.

property name="password" value="password
" />

Specifies the password.

Spring Batch XML Example

<bean class="com.cloudcruiser.batch.collect.JdbcDataSourceConfig">
  <property name="url" value="jdbc:mysql://127.0.0.1:3306/ccdb" />
  <property name="username" value="cloudcollect" />
  <property name="password" value="1234" />
</bean>
  
<batch:step id="collect" next="assemble">
  <batch:tasklet>
    <bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">
      <property name="active" value="true" />
      <property name="collector">
        <bean id="sampleJdbcReader" class="com.cloudcruiser.batch.collect.SmartJdbcCollector">
          <property name="feedName" value="ccdb" />
          <property name="feedConfig" ref="feedConfig" />
          <property name="dataSourceConfig">
            <bean class="com.cloudcruiser.batch.collect.JdbcDataSourceConfig">
              <property name="url" value="jdbc:mysql://127.0.0.1:3306/ccdb" />
              <property name="username" value="cloudcollect" />
              <property name="password" value="1234" />
            </bean>
          </property>
        </bean>
      </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