Configuring the components - 6.5

Throttler - Mediation

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Routing components (Mediation) > Throttler components (Mediation)
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Throttler components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Throttler components (Mediation)
EnrichPlatform
Talend Studio

Procedure

  1. Double-click Read_Output to open its Basic settings view in the Component tab.
  2. In the Path field, type in the path to the source message, for example, "E:/data/output". Keep the default settings for other fields.
  3. Double-click cThrottler to open its Basic settings view in the Component tab.
  4. In the Request per period field, type in the number of messages allowed to pass the throttler per period, for example, 1.
    In the Set time period field, type in the value of the period, for example, 8000.
  5. Double-click Print_File_Name to open its Basic settings view in the Component tab.
  6. In the Code box, enter the code below to get the name of the message that passes the throttler.
    System.out.println("The file that passes throttler is: "+exchange.getIn().getHeader("CamelFileName"));
  7. Double-click Print_File_Content to open its Basic settings view in the Component tab.
  8. In the Code box, enter the code below to get the content of the message that passes the throttler.
    System.out.println("The content of " +exchange.getIn().getHeader("CamelFileName")+ " is: "
    +exchange.getIn().getBody(String.class));
  9. Press Ctrl+S to save your Route.