|
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.AbstractAgent
public abstract class AbstractAgent
Abstract base class for Agent implementations.
| Constructor Summary | |
|---|---|
AbstractAgent()
Default Constructor. |
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
Activate the component. |
java.lang.String |
getAgentId()
Returns the Agent Id, which is the OSGi DecarativeService Component Name. |
AgentState |
getAgentState()
Gets the AgentState. |
protected DataSourceConnectionConfig |
getConfig()
Gets the DataSourceConnectionConfig. |
protected AgentControllerCallback |
getControllerCallback()
Gets the AgentControllerCallback. |
protected boolean |
isStopThread()
Returns the value of the flag _stopThread. |
void |
start(AgentControllerCallback controllerCallback,
AgentState agentState,
DataSourceConnectionConfig config)
Starts the agent using the given configuration, creating a new internal thread. |
void |
stop()
Stops the agent. |
protected void |
stopThread()
Stops the agent thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Constructor Detail |
|---|
public AbstractAgent()
| Method Detail |
|---|
public java.lang.String getAgentId()
throws AgentException
getAgentId in interface AgentAgentException - if any error occurspublic AgentState getAgentState()
public void start(AgentControllerCallback controllerCallback,
AgentState agentState,
DataSourceConnectionConfig config)
throws AgentException
start in interface AgentcontrollerCallback - reference to the interface AgentControllerCallbackconfig - the DataSourceConnectionConfig
AgentException - if any error occursAgent.start(AgentControllerCallback, AgentState,
DataSourceConnectionConfig)
public void stop()
throws AgentException
stop in interface AgentAgentException - if any error occursAgent.stop()protected boolean isStopThread()
protected void stopThread()
protected AgentControllerCallback getControllerCallback()
protected DataSourceConnectionConfig getConfig()
protected void activate(ComponentContext context)
context - the ComponentContext
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||