Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 09:17
Gao Peng is currently offline Gao PengFriend
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: Tue Apr 16 04:39:36 GMT 2024

Powered by FUDForum. Page generated in 0.15691 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top