Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » How to develop an agent implementation which can be started by Agent Controller
How to develop an agent implementation which can be started by Agent Controller [message #131680] Thu, 26 June 2008 05:52 Go to next message
Gao Peng is currently offline Gao Peng
Messages: 3
Registered: July 2009
Junior Member
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
Re: How to develop an agent implementation which can be started by Agent Controller [message #131832 is a reply to message #131680] Fri, 27 June 2008 06:15 Go to previous message
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:g3voto$pje$1@build.eclipse.org...
> 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:Failed to launch latest eclipse 3.4 M6 build by Agent Controller + TPTP
Next Topic:NoClassDefFoundError: org.eclipse.hyades.test.common...?
Goto Forum:
  


Current Time: Fri Jul 25 21:06:43 EDT 2014

Powered by FUDForum. Page generated in 0.04492 seconds