Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » A java-written RAServer
A java-written RAServer [message #7197] Thu, 24 February 2005 18:11 Go to next message
Eclipse UserFriend
Originally posted by: fred.sergent.worldonline.fr

Hello,

I have read in a document called "How to write a TPTP Data Collection
agent" that there are 2 ways to write an agent: either in C or in Java. I
am quite new to this and I would like somebody to confirm if I understand
thaings well:

1- The RAServer available as binaries for various platforms is one example
of such a data collection agent, and also available as source code in the
CVS repository in org.eclipse.hyades.datacollection/collection/framework

2- It is possible to write a data collection agent in Java rather tha in
C. So, is it possible to write in Java an exact equivalent of the C based
RAServer? Is there already such a thing? Does the
org.eclipse.hyades.logging/core/LoggingAgent.java example have anythiong
to do with it?

Thanks in advance for your answers,
Fred
Re: A java-written RAServer [message #8009 is a reply to message #7197] Sat, 26 February 2005 20:23 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Fred,
I hope these answers help:

1) The Agent Controller is a infrastructure for host and executing agents.
The infrastructure or service/daemon is shipped on several platforms and is
stored in CVS under the org.eclipse.hyades.datacollection module. Now, the
Agent Controller contains several types of agents, including JVMPI (Java
profiler) and Logging (XML messaging) agents.

2) Yes, the LoggingAgent class can be extended or used as a Java-based XML
messaging agent. Feel free to take a look at the following class as an
example:
org.eclipse.hyades.logging.java.SingleLoggingAgentHandler

Paul

"Frederic Sergent" <fred.sergent@worldonline.fr> wrote in message
news:cvl5cr$jte$1@www.eclipse.org...
> Hello,
>
> I have read in a document called "How to write a TPTP Data Collection
> agent" that there are 2 ways to write an agent: either in C or in Java. I
> am quite new to this and I would like somebody to confirm if I understand
> thaings well:
>
> 1- The RAServer available as binaries for various platforms is one example
> of such a data collection agent, and also available as source code in the
> CVS repository in org.eclipse.hyades.datacollection/collection/framework
>
> 2- It is possible to write a data collection agent in Java rather tha in
> C. So, is it possible to write in Java an exact equivalent of the C based
> RAServer? Is there already such a thing? Does the
> org.eclipse.hyades.logging/core/LoggingAgent.java example have anythiong
> to do with it?
>
> Thanks in advance for your answers,
> Fred
>
>
>
Re: A java-written RAServer [message #8420 is a reply to message #7197] Mon, 07 March 2005 16:30 Go to previous message
George Christelis is currently offline George ChristelisFriend
Messages: 15
Registered: July 2009
Junior Member
Hi Fred,

The RAServer is the TPTP Agent Controller and is responsible for the
instantiation and management of agents. It facilitates communication between
the agent and the workbench. When a request to create a particular agent is
received from the workbench, the agent controller will create the agent. The
agent process then establishes communication with the agent controller,
which then passes information on into the workbench. Any subsequest commands
that the workbench sends are forwarded through the agent controller to the
agent process.

The agent controller is native only, but has been ported to a variety of
architectures (these are the binaries you noted).

So, in response to (1) - no, the agent controller is not an agent. The
source for the agent controller is currently in
org.eclipse.hyades.datacollection/collection/framework. This plugin
contains the source for a variety of native agents as well. For example, the
source for the Perfmon Agent is in
org.eclipse.hyades.datacollection/collection/collectors/perf mon...

The PerfmonAgent is an example of a C agent.

(2) Yes, an agent can be written in C or in Java. The agent controller is C
only, but libraries are provided to facilitate communications with Java
agents.The LoggingAgent.java class is an example of a Java agent. Another
example would be the JmxAgent in
org.eclipse.hyades.datacollection/collection/collectors/jmxa gent

Hope this helps..
George

"Frederic Sergent" <fred.sergent@worldonline.fr> wrote in message
news:cvl5cr$jte$1@www.eclipse.org...
> Hello,
>
> I have read in a document called "How to write a TPTP Data Collection
> agent" that there are 2 ways to write an agent: either in C or in Java. I
> am quite new to this and I would like somebody to confirm if I understand
> thaings well:
>
> 1- The RAServer available as binaries for various platforms is one example
> of such a data collection agent, and also available as source code in the
> CVS repository in org.eclipse.hyades.datacollection/collection/framework
>
> 2- It is possible to write a data collection agent in Java rather tha in
> C. So, is it possible to write in Java an exact equivalent of the C based
> RAServer? Is there already such a thing? Does the
> org.eclipse.hyades.logging/core/LoggingAgent.java example have anythiong
> to do with it?
>
> Thanks in advance for your answers,
> Fred
>
>
>
Previous Topic:New, improved TPTP website
Next Topic:An error has occurred when creating this editor
Goto Forum:
  


Current Time: Mon Sep 23 11:01:17 GMT 2019

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

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

Back to the top