tStatCatcher
Gathers the Job processing metadata at the Job level and at the component level and
transfers the log data to the subsequent component for display or storage.
Based on the pre-defined schema, tStatCatcher gathers the Job processing metadata at
the Job level and at the component level when the tStatCatcher Statistics check box is
selected.
tStatCatcher Standard properties
These properties are used to configure tStatCatcher running in the Standard Job framework.
The Standard
tStatCatcher component belongs to the Logs & Errors family.
The component in this framework is available in all Talend
products.
Basic settings
Schema |
A schema is a row description, it defines the fields to be |
 |
Moment: Processing time and date |
 |
Pid: Process ID |
 |
Father_pid: Process ID of the |
 |
Root_pid: Process ID of the root |
 |
System_pid: Thread ID. |
 |
Project: Project name, which the |
 |
Job: Name of the current |
 |
Job_repository_id: ID of the |
 |
Job_version: Version of the |
 |
Context: Name of the current |
 |
Origin: Name of the component if |
 |
Message_type: Begin or |
 |
Message: Success or |
 |
Duration: Time for the execution |
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component is the start component of a secondary Job which |
Displaying the statistics log of Job execution
This scenario collects the statistics log for the Job execution and displays it on the
Run console. Note that, since the tStatCatcher
Statistics check box is not selected for the components, the statistics log applies
solely to this specific Job.
Linking the components
-
Drop tFixedFlowInput, tFileOutputDelimited, tStatCatcher and tLogRow
onto the workspace. -
Link tFixedFlowInput to tFileOutputDelimited using a Row > Main
connection. -
Link tStatCatcher to tLogRow using a Row > Main
connection.
Configuring the components
-
Double-click tFixedFlowInput to open its
Basic settings view. -
Click the Edit schema button to open the
schema editor. -
Click the [+] button to add three
columns, namely ID_Owners, Name_Customer and ID_Insurance, of the Integer and String types respectively.
-
Click Ok to validate the setup and close
the editor. -
In the dialog box that appears, click Yes
to propagate the changes to the subsequent component. -
Select the Use Inline Content (delimited
file) option. -
In the Content box, enter
1;Andrew;888
. -
Double-click tFileOutputDelimited to open
its Basic settings view. -
In the File Name field, enter the full
name of the file to save the statistics data. -
Double-click tLogRow to open its
Basic settings view. -
Select Vertical (each row is a key/value
list) for a better display of the results.
Executing the Job
- Press Ctrl + S to save the Job.
-
Press F6 to run the Job.
As shown above, the statistics log of the Job execution is correctly
generated.