public abstract class AbstractImporterFactory
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Constructor and Description |
---|
AbstractImporterFactory() |
Modifier and Type | Method and Description |
---|---|
AbstractImporter |
createImporter(ImporterConfig config)
Method that is used by the importer framework classes to create
an importer instance and wire it correctly for use within the server.
|
abstract java.util.Map<java.net.URI,ImporterConfig> |
createImporterConfigurations(java.util.Properties props,
org.voltdb.importer.formatter.FormatterBuilder formatterBuilder)
From a given set of properties, creates ImporterConfig for every resource ID configured.
|
abstract java.lang.String |
getTypeName()
A unique name identifying the type of this importer.
|
abstract boolean |
isImporterRunEveryWhere()
Returns true if an importer instance must be run on every site for every resource.
|
void |
setImportServerAdapter(org.voltdb.importer.ImporterServerAdapter importServerAdapter)
Passes in the adapter class that the importers may use to execute procedures.
|
void |
start(org.osgi.framework.BundleContext context)
Registers this as an OSGi service.
|
void |
stop(org.osgi.framework.BundleContext context) |
public final void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public final void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public final void setImportServerAdapter(org.voltdb.importer.ImporterServerAdapter importServerAdapter)
importServerAdapter
- which adapter is used for invoking procedures from importer.public final AbstractImporter createImporter(ImporterConfig config)
config
- configuration information required to create an importer instancepublic abstract java.lang.String getTypeName()
public abstract java.util.Map<java.net.URI,ImporterConfig> createImporterConfigurations(java.util.Properties props, org.voltdb.importer.formatter.FormatterBuilder formatterBuilder)
props
- importer configuration properties; typically defined in deployment file.formatterBuilder
- the formatter builderpublic abstract boolean isImporterRunEveryWhere()