August 16, 2023

tJavaStorm – Docs for ESB 6.x

tJavaStorm

Provides a Java code editor that lets you enter the custom Storm code you want to
use in the Storm topology you are designing.

You can execute this code only once. tJavaStorm makes it
possible to extend the functionalities of a Talend Job through writing custom
execute method of the bolt to be used. A bolt is the worker that
accomplishes any processing in a topology.

This component appears only when you are creating a Storm Job.

tJavaStorm Storm properties

These properties are used to configure tJavaStorm running in the Storm Job framework.

The Storm
tJavaStorm component belongs to the Custom Code family.

The component in this framework is available only if you have subscribed to Talend Real-time Big Data Platform or Talend Data
Fabric.

Basic settings

Schema and Edit
Schema

A schema is a row description. It defines the number of fields (columns) to
be processed and passed on to the next component. The schema is either Built-In or stored remotely in the Repository.

 

Built-In: You create and store the
schema locally for this component only. Related topic: see
Talend Studio

User Guide.

 

Repository: You have already created
the schema and stored it in the Repository. You can reuse it in various projects and
Job designs. Related topic: see
Talend Studio

User Guide.

 

Click Edit schema to make changes to the schema.
If the current schema is of the Repository type, three
options are available:

  • View schema: choose this option to view the
    schema only.

  • Change to built-in property: choose this
    option to change the schema to Built-in for
    local changes.

  • Update repository connection: choose this
    option to change the schema stored in the repository and decide whether to propagate
    the changes to all the Jobs upon completion. If you just want to propagate the
    changes to the current Job, you can select No
    upon completion and choose this schema metadata again in the [Repository Content] window.

Bolt code

Enter the body of the main method of the bolt you want to
execute.

Advanced settings

Bolt advanced code

This area allows you to define the classes, variables and methods
that you want to use along with the execute method of the bolt defined in the Basic settings view. Note that the
advanced code is not required for using tJavaStorm.

Two fields are available for this purpose:

Implement the prepare code:
select this check box and in the displayed field, define the
prepare method to set up the
environment in which the bolt is executed.

Implement the cleanup method:
select this check box and in the displayed field, define the
cleanup method you want to
use to finalize a topology.

Usage

Usage rule

Once a Storm Job is opened in the workspace, tJavaStorm appears in the Palette of the Studio. It is used as an intermediate
step in a Storm Job.

Note that in this documentation, unless otherwise explicitly stated, a scenario presents
only Standard Jobs, that is to say traditional
Talend
data
integration Jobs.

Storm Connection

You need to use the Storm Configuration tab in the
Run view to define the connection to a given Storm
system for the whole Job.

This connection is effective on a per-Job basis.

Related scenario


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x