|
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,
java.lang.String jobName)
Add the given record. |
protected void |
deactivate(ComponentContext context)
DS deactivate method. |
void |
delete(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
ConnectivityId id,
java.lang.String jobName)
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. |
AgentPerformanceCounterHelper<? extends ConnectivityPerformanceAgent> |
getPerformanceCounterHelper(java.lang.String dataSourceId)
|
boolean |
hasActiveAgents()
Checks if there are any active agents. |
int |
startAgent(java.lang.String dataSourceId,
java.lang.String jobName)
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)
|
| Methods inherited from class org.eclipse.smila.connectivity.framework.impl.AbstractController |
|---|
addComponentFactory, assertNotEmpty, checkConfiguration, 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 |
| Constructor Detail |
|---|
public AgentControllerImpl()
| Method Detail |
|---|
public AgentPerformanceCounterHelper<? extends ConnectivityPerformanceAgent> getPerformanceCounterHelper(java.lang.String dataSourceId)
getPerformanceCounterHelper in interface AgentController
public int startAgent(java.lang.String dataSourceId,
java.lang.String jobName)
throws ConnectivityException
startAgent in interface AgentControllerdataSourceId - the ID of the data sourcejobName - name of the JobManager job to submit the records to.
ConnectivityException - if any error occursorg.eclipse.smila.connectivity.framework.AgentController#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,
java.lang.String jobName)
throws AgentCriticalException
sessionId - the delta indexing session IddeltaIndexingType - the DeltaIndexingTyperecord - the record to addhash - the hash value used for delta indexingjobName - JobManager job to submit record to.
AgentCriticalException
public void delete(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
ConnectivityId id,
java.lang.String jobName)
throws AgentCriticalException
sessionId - the delta indexing session IddeltaIndexingType - the DeltaIndexingTypeid - the id of the record to deletejobName - JobManager job to submit record to.
AgentCriticalException
public void unregister(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
java.lang.String dataSourceId)
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 | ||||||||