5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-08 12:01:09 +08:00

SQOOP-799 Change SqoopConnector interface to abstract class

(Jarek Jarcec Cecho)
This commit is contained in:
Bilung Lee 2012-12-26 14:30:42 -08:00
parent 46b50e3f68
commit f55b132035
2 changed files with 9 additions and 9 deletions

View File

@ -30,7 +30,7 @@
import org.apache.sqoop.model.MJob;
import org.apache.sqoop.validation.Validator;
public class GenericJdbcConnector implements SqoopConnector {
public class GenericJdbcConnector extends SqoopConnector {
private static final Importer IMPORTER = new Importer(
GenericJdbcImportInitializer.class,

View File

@ -28,40 +28,40 @@
/**
* Service provider interface for Sqoop Connectors.
*/
public interface SqoopConnector {
public abstract class SqoopConnector {
/**
* Retrieve connector version.
*
* @return Version encoded as a string
*/
String getVersion();
public abstract String getVersion();
/**
* @param locale
* @return the resource bundle associated with the given locale.
*/
ResourceBundle getBundle(Locale locale);
public abstract ResourceBundle getBundle(Locale locale);
/**
* @return Get connection configuration class
*/
Class getConnectionConfigurationClass();
public abstract Class getConnectionConfigurationClass();
/**
* @return Get job configuration class for given type or null if not supported
*/
Class getJobConfigurationClass(MJob.Type jobType);
public abstract Class getJobConfigurationClass(MJob.Type jobType);
/**
* @return an <tt>Importer</tt> that provides classes for performing import.
*/
Importer getImporter();
public abstract Importer getImporter();
/**
* @return an <tt>Exporter</tt> that provides classes for performing export.
*/
Exporter getExporter();
public abstract Exporter getExporter();
/**
* Returns validation object that Sqoop framework can use to validate user
@ -70,6 +70,6 @@ public interface SqoopConnector {
*
* @return Validator object
*/
Validator getValidator();
public abstract Validator getValidator();
}