A java-written RAServer [message #7197] |
Thu, 24 February 2005 18:11 |
Eclipse User |
|
|
|
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 #8420 is a reply to message #7197] |
Mon, 07 March 2005 16:30 |
George Christelis 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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03400 seconds