Configure the runtime behavior of the connector in Java. You can set up the runtime behavior for each object.
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.
Implement the methods in the
<ConnectorID><NMOName>DataAdapter.java
file based on the connector type.
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
Implement the following methods for a JDBC driver-based connector:
read
write
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.
Implement the following methods in the
<ConnectorID>DataConnection.java
file:
connect
disconnect
To support data preview in the Informatica Intelligent Cloud Services, implement the following method in the