|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.impl.AbstractController
public abstract class AbstractController
Base class for Crawler- and AgentController. Contains shared functionality.
| Constructor Summary | |
|---|---|
AbstractController()
|
|
| Method Summary | ||
|---|---|---|
void |
addComponentFactory(ComponentFactory factory)
Adds a ComponentFactory to the internal List of ComponentFactory. |
|
protected
|
createInstance(java.lang.Class<T> clazz,
java.lang.String componentId)
Returns a new Crawler or Agent instance for the given componentId. |
|
protected java.util.Collection<java.lang.String> |
getAvailableFactories()
Returns the component names of all available ComponentFactories. |
|
CompoundManager |
getCompoundManager()
|
|
protected DataSourceConnectionConfig |
getConfiguration(java.lang.String bundleId,
java.lang.String dataSourceId)
Returns the DataSourceConnectionConfig for the given dataSourceId. |
|
ConnectivityManager |
getConnectivityManager()
|
|
void |
removeComponentFactory(ComponentFactory factory)
Removes a ComponentFactory from the internal List of ComponentFactory. |
|
void |
setCompoundManager(CompoundManager compoundManager)
Sets the compoundManager. |
|
void |
setConnectivityManager(ConnectivityManager connectivityManager)
Sets the ConnectivityManager. |
|
void |
unsetCompoundManager(CompoundManager compoundManager)
Set the compoundManager to null. |
|
void |
unsetConnectivityManager(ConnectivityManager connectivityManager)
Set the _connectivityManager to null. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractController()
| Method Detail |
|---|
public ConnectivityManager getConnectivityManager()
public void setConnectivityManager(ConnectivityManager connectivityManager)
connectivityManager - the connectivityManager to setpublic void unsetConnectivityManager(ConnectivityManager connectivityManager)
connectivityManager - the connectivityManager to unsetpublic CompoundManager getCompoundManager()
public void setCompoundManager(CompoundManager compoundManager)
compoundManager - the compoundManager to setpublic void unsetCompoundManager(CompoundManager compoundManager)
compoundManager - the compoundManager to unsetpublic void addComponentFactory(ComponentFactory factory)
factory - the ComponentFactory to addpublic void removeComponentFactory(ComponentFactory factory)
factory - the ComponentFactory to removeprotected java.util.Collection<java.lang.String> getAvailableFactories()
protected <T> T createInstance(java.lang.Class<T> clazz,
java.lang.String componentId)
throws ConnectivityException
T - the return typeclazz - the class of the created instance (Agent or Crawler)componentId - the Id of the Crawler or Agent
ConnectivityException - if no ComponentFactory instance with the given Id could be created
protected DataSourceConnectionConfig getConfiguration(java.lang.String bundleId,
java.lang.String dataSourceId)
throws ConnectivityException
bundleId - the id of the bundledataSourceId - the Id of the data source
ConnectivityException - if no DataSource with the given Id exists
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||