|
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 interface org.eclipse.smila.connectivity.framework.AgentController |
|---|
PERFORMANCE_AGENT_LOCATION |
| Constructor Summary | |
|---|---|
AgentControllerImpl()
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Record[] records)
Add the given records. |
void |
delete(Id[] ids)
Delete the given ids. |
java.util.Collection<java.lang.String> |
getActiveAgents()
Returns a Collection of Strings containing the dataSourceIds of the currently active agents. |
java.util.Collection<java.lang.String> |
getAvailableAgents()
returns the AgentController known Agents. |
AgentState |
getState(java.lang.String dataSourceId)
Returns the AgentState of the agent with the given dataSourceId. |
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 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, getAvailableFactories, getCompoundManager, getConfiguration, getConnectivityManager, removeComponentFactory, setCompoundManager, setConnectivityManager, unsetCompoundManager, unsetConnectivityManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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.Collection<java.lang.String> getActiveAgents()
throws ConnectivityException
getActiveAgents in interface AgentControllerConnectivityException - if any error occursAgentController.getActiveAgents()
public AgentState getState(java.lang.String dataSourceId)
throws ConnectivityException
getState in interface AgentControllerdataSourceId - the ID of the data source to get the state
ConnectivityException - if any error occursAgentController.getState(String)public java.util.Collection<java.lang.String> getAvailableAgents()
getAvailableAgents in interface AgentControllerAgentController.getAvailableAgents()public void add(Record[] records)
add in interface AgentControllerCallbackrecords - the records to addorg.eclipse.smila.connectivity.framework.util.AgentControllerCallback#add(Record)public void delete(Id[] ids)
delete in interface AgentControllerCallbackids - the ids of the records to deleteorg.eclipse.smila.connectivity.framework.util.AgentControllerCallback#delete(Id)public void unregister(java.lang.String dataSourceId)
unregister in interface AgentControllerCallbackdataSourceId - the ID of the data source used by the crawlAgentControllerCallback.unregister(java.lang.String)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||