Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Connector Toolkit
  3. Before you begin
  4. Develop a connector for Cloud Data Integration
  5. Import a connector
  6. Debug the connector code
  7. Connection attributes
  8. Type system
  9. Connector metadata
  10. Partitioning capability
  11. Manual changes to Informatica Connector Toolkit source code
  12. Runtime behavior
  13. Connector example: MySQL_Cloud
  14. Version control integration
  15. Appendix A: Metadata models
  16. Appendix B: ASO model
  17. Appendix C: Connector project migration
  18. Appendix D: Frequently used generic APIs in Informatica Connector Toolkit
  19. Appendix E: Frequently asked questions

Cloud Data Integration Connector Toolkit Developer Guide

Cloud Data Integration Connector Toolkit Developer Guide

Set up runtime

Set up runtime

Configure the runtime behavior of the connector in Java. You can set up the runtime behavior for each object.
  1. In the
    Connector Progress view
    , under
    Phase 3: Configure the Runtime Behavior
    , click
    Set Up
    .
    The
    <ConnectorID><NMOName>DataAdapter.java
    and
    <ConnectorID>DataConnection.java
    files are generated.
  2. Implement the methods in the
    <ConnectorID><NMOName>DataAdapter.java
    file based on the connector type.
    1. Implement the following methods for all connector types:
      • initDataSourceOperation. Implement this method to perform tasks before the mapping runs. For example, you can implement code to initialize environment variables. The scope of the RuntimeConfig and Metadata handles available in this method is within the initDataSourceOperation method.
      • deinitDataSourceOperation. Implement this method to perform tasks after the mapping runs. The scope of the RuntimeConfig and Metadata handles available in this method is within the deinitDataSourceOperation method.
      • initDataSourceOperation
      • deinitDataSourceOperation
      • initDataSession
      • deinitDataSession
      • reset (Optional. Implement this method if the connector supports the lookup operation.)
      • beginDataSession
      • endDataSession
    2. Implement the following methods for a JDBC driver-based connector:
      • read
      • write
    3. Implement the following methods for a REST API-based connector:
      • call
      • executeRestAPI
      The auto-generated code for the call and executeRestAPI methods contains the connection attributes for API failover. You can edit the attribute values according to your requirement.
      • ConnectionTimeout. The wait time in milliseconds to get a response from a REST endpoint. The connection attempt times out if it does not receive a response within the specified timeout period. Default is 120000 milliseconds.
      • connectiondelaytime. The delay time in milliseconds to wait after a request to a REST endpoint fails and before it attempts to resend requests to the REST endpoint. Default is 10000 milliseconds.
      • retryattempts. Number of times a connection can attempt to reconnect when 400 and 500 series error codes are returned in the response. Default is 3. Specify 0 to disable the retry attempts.
  3. Implement the following methods in the
    <ConnectorID>DataConnection.java
    file:
    • connect
    • disconnect
  4. To support data preview in the Informatica Intelligent Cloud Services, implement the following method in the
    <ConnectorID>ASOOperationObjMgr.java
    file: prepareRuntimeOperation

0 COMMENTS

We’d like to hear from you!