|Re: How to develop an agent implementation which can be started by Agent Controller [message #131954]
||Wed, 02 July 2008 09:17
| Gao Peng
Registered: July 2009
I tried to simulate org.eclipse.tptp.TimeCollector and
org.eclipse.tptp.JavaTimeCollector to implement the agent which can be
started by Agent Controller. It seems the only thing I need to do is to
create the directory with the agent name in <AC_Home>/agents and edit
agent.xml in it. The key point is "Application" element. It seems Agent
Controller tries to execute the command defined in this element when
IAgentController.getAgent(String agentName, String agentClassName) is
invoked. And I checked whether the agent is deployed correctly via
I still have 2 questions.
1. What's the meaning of "ConfigFile" element? I found the agent works well
even the config file is not existed.
2. I found the relative path in "Application" element doesn't work in my
environment. I have to declare the absolute path. Is this a bug?
Thanks a lot!
"Gao Peng" <email@example.com> wrote in message news:...
> I developed an agent implementation based on
> org.eclipse.tptp.platform.execution.datacollection.BaseAgent , deployed it
> into <AC_Home>/plugins. After it's initialized and registered in an
> JVM(for exmaple, Tomcat), I can attach it via Agent Controller and get
> data from it. It works well.
> Now, I want to develop another agent implementation which can be started
> by Agent Controller. That means, I don't need to initialize and register
> it via some other program. Just after start Agent Controller, I can attach
> this agent and transfer data with it.
> Is it support by Agent Controller?
> Thanks a lot!
> Gao Peng
Powered by FUDForum
. Page generated in 0.01638 seconds