PerfmonAgent [message #76965] |
Tue, 11 July 2006 08:04  |
Eclipse User |
|
|
|
Originally posted by: radek.kedzior.gazeta.pl
Hi!
I have some questions about PerfmonAgent. I've been looking for those
information, but not enough effective.
- agent.xml - where can I find information about this file?
<Agent Name="org.eclipse.tptp.legacy.PerfmonAgent">
<Interface>org.eclipse.tptp.agent</Interface>
Is there any other interface? I was trying to use:
ICollector, but while executing:
ICollector TCollector = (ICollector)ac.getAgent(
"org.eclipse.tptp.legacy.PerfmonAgent", "org.eclipse.tptp.collector");
the cast exception is thrown, so the ICollector is not implemented by
PerfmonAgent. Am I right?
<SingleInstance>0</SingleInstance>
<Bound>0</Bound>
<MaxControllers>-1</MaxControllers>
<MaxObservers>-1</MaxObservers>
Are these options correct?
<ConfigFile></ConfigFile>
Where can I find it? Is there any?
This configuration seems quite ok. After executing:
IAgent[] a = ac.queryRunningAgents();
IAgent TAgent = (IAgent)ac.getAgent( "org.eclipse.tptp.legacy.PerfmonAgent",
"org.eclipse.tptp.agent" );
IAgent[] b = ac.queryRunningAgents();
variable 'a' doesn't contain PerfmonAgent and variable 'b' does.
- API
I have an instance of PerfmonAgent in TAgent, and now I don't know how to
communicate with it. If it implements an IAgent interface I can call methods
delivered by this interface. But I still don't know what options (data)
those methods needs. I found PerfmonMessages class but there is no
description.
Where can I find information how to inform PerfmonAgent which data I need
and how can I receive that data. Not via Eclipse but I need API. Is there
any documentation or not yet?
Thanks
Radek Kedzior
|
|
|
|
|
Re: PerfmonAgent [message #77118 is a reply to message #76965] |
Tue, 11 July 2006 13:23   |
Eclipse User |
|
|
|
FaLCoN wrote:
> Hi!
>
> I have some questions about PerfmonAgent. I've been looking for those
> information, but not enough effective.
>
> - agent.xml - where can I find information about this file?
> <Agent Name="org.eclipse.tptp.legacy.PerfmonAgent">
> <Interface>org.eclipse.tptp.agent</Interface>
> Is there any other interface? I was trying to use:
> ICollector, but while executing:
>
> ICollector TCollector = (ICollector)ac.getAgent(
> "org.eclipse.tptp.legacy.PerfmonAgent", "org.eclipse.tptp.collector");
>
> the cast exception is thrown, so the ICollector is not implemented by
> PerfmonAgent. Am I right?
>
> <SingleInstance>0</SingleInstance>
> <Bound>0</Bound>
> <MaxControllers>-1</MaxControllers>
> <MaxObservers>-1</MaxObservers>
> Are these options correct?
>
> <ConfigFile></ConfigFile>
> Where can I find it? Is there any?
>
> This configuration seems quite ok. After executing:
>
> IAgent[] a = ac.queryRunningAgents();
> IAgent TAgent = (IAgent)ac.getAgent( "org.eclipse.tptp.legacy.PerfmonAgent",
> "org.eclipse.tptp.agent" );
> IAgent[] b = ac.queryRunningAgents();
>
> variable 'a' doesn't contain PerfmonAgent and variable 'b' does.
>
> - API
>
> I have an instance of PerfmonAgent in TAgent, and now I don't know how to
> communicate with it. If it implements an IAgent interface I can call methods
> delivered by this interface. But I still don't know what options (data)
> those methods needs. I found PerfmonMessages class but there is no
> description.
>
> Where can I find information how to inform PerfmonAgent which data I need
> and how can I receive that data. Not via Eclipse but I need API. Is there
> any documentation or not yet?
>
>
>
> Thanks
>
> Radek Kedzior
If you'll read my response to Przemyslaw Kleszczewski's "Perfmon Agent"
thread prior to this one, you'll get some historical context. One of the
things I mention there is the potential for confusion between the
existing RAC-oriented PerfmonAgent that comes with TPTP since as long as
I'm aware of, and the "migrated PerfmonAgent" that came with *4.1 only*.
I think you're working with the migrated PerfmonAgent code, but
potentially trying to talk to the old PerfmonAgent. You mention that
"queryRunningAgents" gave you access to a PerfmonAgent... how was it
started? If from the client, it's almost certainly the original
PerfmonAgent that talks RAC protocol. I don't think the client workbench
can launch the "migrated PerfmonAgent"... unless you get the
PerfmonPluginforAC (I think it was called) execution framework changes
from 4.1.
Besides the environment string changes mentioned in the prior response
mentioned above, I recall there were changes in the inheritance
hierarchy... that is probably the reason for the above class mismatch...
I recall running into them, but I don't recall how I got around them.
Perhaps I didn't... as I said, we abandoned the effort to keep the
"migrated PerfmonAgent" up to date due to lack of resources and
potential confusion... and here I am confused again! :-)
*One* thing I can help you with is the agent.xml specification: That's
documented at < http://www.eclipse.org/tptp/index.html > =>
Documentation => Installation and Getting Started Guides: Getting
Started with the Agent Controller 4.2.0-link => Windows => under
"Configure Agent Controller" the "Agent Controller configuration files"
link <
http://www.eclipse.org/tptp/home/downloads/installguide/agen tcontroller_42/ac_ref/r_config_ovw.html
> => second bullet item will direct you to "The agent.xml File" link at
<
http://www.eclipse.org/tptp/home/downloads/installguide/agen tcontroller_42/ac_ref/r_config_agent.html
>.
No, as far as I know there is no documentation on the "protocol" for
communicating between the client and the agent for PerfmonAgent. All I
know about it I learned from reading the code. Basically, you click on
tree elements in the client, which turns into tree element indicators
being sent to the agent. The agent is looping reading data based on a
database of tree elements to deliver, and delivering that information.
Another thread gets the client requests, and modifies the database, so
that the next iteration around the additional data is sent. That's it in
a nutshell.
--
RDS
Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
|
|
|
|
Powered by
FUDForum. Page generated in 0.02063 seconds