THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
JIRA: SQOOP-1680
Table of Contents |
---|
This document serves as a guide for the public facing Sqoop Repository API as of 1.99.5 release
...
Code Block |
---|
/** * Upgrade the connector with the same {@linkplain MConnector#uniqueName} * in the repository with values from <code>newConnector</code>. * <p/> * All links and jobs associated with this connector will be upgraded * automatically. * * @param oldConnector The old connector that should be upgraded. * @param newConnector New properties for the Connector that should be * upgraded. */ public final void upgradeConnector(MConnector oldConnector, MConnector newConnector) { ..} /** * Update the connector with the new data supplied in the * <tt>newConnector</tt>. Also Update all configs associated with this * connector in the repository with the configs specified in * <tt>mConnector</tt>. <tt>mConnector </tt> must * minimally have the configurableID and all required configs (including ones * which may not have changed). After this operation the repository is * guaranteed to only have the new configs specified in this object. * * @param newConnector The new data to be inserted into the repository for * this connector. * @param tx The repository transaction to use to push the data to the * repository. If this is null, a new transaction will be created. * method will not call begin, commit, * rollback or close on this transaction. */ publicprotected abstract void upgradeConnectorAndConfigs(MConnector newConnector, RepositoryTransaction tx); |
...
Code Block |
---|
public final void upgradeDriver(MDriver driver) { ..} /** * Upgrade the driver with the new data supplied in the * <tt>mDriver</tt>. Also Update all configs associated with the driver * in the repository with the configs specified in * <tt>mDriver</tt>. <tt>mDriver </tt> must * minimally have the configurableID and all required configs (including ones * which may not have changed). After this operation the repository is * guaranteed to only have the new configs specified in this object. * * @param newDriver The new data to be inserted into the repository for * the driverConfig. * @param tx The repository transaction to use to push the data to the * repository. If this is null, a new transaction will be created. * method will not call begin, commit, * rollback or close on this transaction. */ publicprotected abstract void upgradeDriverAndConfigs(MDriver newDriver, RepositoryTransaction tx); |
...