|
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
org.eclipse.smila.connectivity.framework.impl.AgentControllerImpl
public class AgentControllerImpl
Basic Implementation of a AgentController.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.smila.connectivity.framework.impl.AbstractController |
|---|
_lock |
| Fields inherited from interface org.eclipse.smila.connectivity.framework.AgentController |
|---|
PERFORMANCE_AGENT_LOCATION |
| Constructor Summary | |
|---|---|
AgentControllerImpl()
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
Record record,
java.lang.String hash)
Add the given record. |
protected void |
deactivate(ComponentContext context)
DS deactivate method. |
void |
delete(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
ConnectivityId id)
Delete the given id. |
java.util.Map<java.lang.String,AgentState> |
getAgentTasksState()
Gets the status of all agent tasks as a map of data source id and agent state. |
java.util.Collection<java.lang.String> |
getAvailableAgents()
returns the AgentController known Agents. |
java.util.Collection<java.lang.String> |
getAvailableConfigurations()
returns all available Agent data source configurations. |
boolean |
hasActiveAgents()
Checks if there are any active agents. |
int |
startAgent(java.lang.String dataSourceId)
Starts an Agent using the given dataSourceId. |
void |
stopAgent(java.lang.String dataSourceId)
Stops an active agent using the given dataSourceId. |
void |
unregister(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
java.lang.String dataSourceId)
Removes the Agent using the given DataSourceId from the list of active Agents. |
| Methods inherited from class org.eclipse.smila.connectivity.framework.impl.AbstractController |
|---|
addComponentFactory, createInstance, doCheckForUpdate, doDeltaDelete, doDeltaIndexing, getAvailableFactories, getCompoundManager, getConfiguration, getConfigurations, getConnectivityManager, getDeltaIndexingManager, removeComponentFactory, setCompoundManager, setConnectivityManager, setDeltaIndexingManager, unsetCompoundManager, unsetConnectivityManager, unsetDeltaIndexingManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.smila.connectivity.framework.util.ControllerCallback |
|---|
doCheckForUpdate, doDeltaDelete, doDeltaIndexing |
| Constructor Detail |
|---|
public AgentControllerImpl()
| Method Detail |
|---|
public int startAgent(java.lang.String dataSourceId)
throws ConnectivityException
startAgent in interface AgentControllerdataSourceId - the ID of the data source
ConnectivityException - if any error occursAgentController.startAgent(String)
public void stopAgent(java.lang.String dataSourceId)
throws ConnectivityException
stopAgent in interface AgentControllerdataSourceId - the ID of the data source
ConnectivityException - if any error occursAgentController.stopAgent(String)
public boolean hasActiveAgents()
throws ConnectivityException
hasActiveAgents in interface AgentControllerConnectivityException - if any error occursAgentController.hasActiveAgents()public java.util.Map<java.lang.String,AgentState> getAgentTasksState()
getAgentTasksState in interface AgentControllerAgentController.getAgentTasksState()public java.util.Collection<java.lang.String> getAvailableAgents()
getAvailableAgents in interface AgentControllerAgentController.getAvailableAgents()public java.util.Collection<java.lang.String> getAvailableConfigurations()
getAvailableConfigurations in interface AgentControllerAgentController.getAvailableConfigurations()
public void add(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
Record record,
java.lang.String hash)
add in interface AgentControllerCallbacksessionId - the delta indexing session IddeltaIndexingType - the DeltaIndexingTyperecord - the record to addhash - the hash value used for delta indexingAgentControllerCallback.add(String, DeltaIndexingType, Record,
String)
public void delete(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
ConnectivityId id)
delete in interface AgentControllerCallbacksessionId - the delta indexing session IddeltaIndexingType - the DeltaIndexingTypeid - the id of the record to deleteorg.eclipse.smila.connectivity.framework.util.AgentControllerCallback#delete(String, DeltaIndexingType, Id)
public void unregister(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
java.lang.String dataSourceId)
unregister in interface AgentControllerCallbacksessionId - the delta indexing session IddeltaIndexingType - the DeltaIndexingTypedataSourceId - the ID of the data source used by the crawlAgentControllerCallback.unregister(String, DeltaIndexingType,
String)
protected void deactivate(ComponentContext context)
throws java.lang.Exception
context - the ComponentContext
java.lang.Exception - if any error occurs
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||