Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Logging Agent Termination
Logging Agent Termination [message #97682] Fri, 04 May 2007 04:41 Go to next message
Eclipse User
Originally posted by: zclipse.gmail.com

Hello, while studying the org.eclipse.hyades.perfmon code, I have a
question:

The perfmon agent is currently being 'terminated' when the user presses the
'terminate' button.
This is currently being handled in the 'ProcessControlProvider'
implementation.

---> ??How can I intercept this termination and handle it on my own ???
(for e.g. I dont want to 'terminate' the Perfmon.exe's process).

----------
I noticed that the extension point
""org.eclipse.hyades.trace.ui.controllableEntity"" associates the
ProcessControlProvider to all agents that are type "logging"
<control associatedAgentId = "org.eclipse.tptp.trace.ui.logging">
<entity type = "process"
class =
" org.eclipse.tptp.trace.ui.provisional.control.provider.Proce ssControlProvider "/>

Thanks
Re: Logging Agent Termination [message #98426 is a reply to message #97682] Fri, 11 May 2007 01:01 Go to previous message
No real name is currently offline No real name
Messages: 404
Registered: July 2009
Senior Member
There is no control provider associated with a perfmon agent. Any agent
without a control provider is automatically assigned to the PI's agent
control provider (which was required because of backward compatibility).

Although you can write your own control provider and have it associated with
a statistical agent, it's not really a good idea to do that. It's only
kosher to write control providers for agents that your code owns. Since you
don't really own the TPTP pefmon agent, then your code shouldn't dictate how
it's associated actions should behave (btw, nothing is stopping you from
breaking the rules here).

To find out more about control providers, see
http://www.eclipse.org/tptp/platform/documents/tutorials/dat acollection/launch-extensions/extending-launch-configuration .html#2.3

Thanks,
Ali Mehregani

"Emura" <zclipse@gmail.com> wrote in message
news:f1edh2$pnm$1@build.eclipse.org...
> Hello, while studying the org.eclipse.hyades.perfmon code, I have a
> question:
>
> The perfmon agent is currently being 'terminated' when the user presses
> the 'terminate' button.
> This is currently being handled in the 'ProcessControlProvider'
> implementation.
>
> ---> ??How can I intercept this termination and handle it on my own ???
> (for e.g. I dont want to 'terminate' the Perfmon.exe's process).
>
> ----------
> I noticed that the extension point
> ""org.eclipse.hyades.trace.ui.controllableEntity"" associates the
> ProcessControlProvider to all agents that are type "logging"
> <control associatedAgentId = "org.eclipse.tptp.trace.ui.logging">
> <entity type = "process"
> class =
> " org.eclipse.tptp.trace.ui.provisional.control.provider.Proce ssControlProvider "/>
>
> Thanks
>
Previous Topic:AGR - The references for two different Edit Boxes set to the same value
Next Topic:Problem in running TPTP Plugin junit with java 1.4
Goto Forum:
  


Current Time: Tue Sep 30 10:13:51 GMT 2014

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

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