Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Re: How to develop an agent implementation which can be started by Agent Controller
Re: How to develop an agent implementation which can be started by Agent Controller [message #131954] Wed, 02 July 2008 05:17
Gao Peng is currently offline Gao Peng
Messages: 3
Registered: July 2009
Junior Member
Hi,

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
IAgentController.queryAvailableAgents().

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


"Gao Peng" <gpeng@cn.ibm.com> wrote in message news:...
> Hello,
>
> 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
>
Previous Topic:TPTP not showing all expected object
Next Topic:Support for Mac OS X?
Goto Forum:
  


Current Time: Wed Jul 30 21:32:46 EDT 2014

Powered by FUDForum. Page generated in 0.01862 seconds