It's all about the answers!

Ask a question

Need to hook in a listener to measure load time


Morten Bundgaard Selmer (1123) | asked Nov 28 '12, 8:34 a.m.
 I'm a newbie to the RTCclient API, so bare with me.
I need to create a plugin that does different measurements of time. One is to measure how long it takes to load planned Items in the IterationPlanEditor.

Does anyone know how I setup a listener so that I can catch this information?

Thanks

5 answers




permanent link
sam detweiler (12.4k6178201) | answered Nov 28 '12, 9:00 a.m.
note that the times collected for Eclipse plan retrieves are very very different than those experienced on the Web UI. due to the fact that the web UI is all javascript.

my java client timings are 1/3-1/2 the web UI timings

permanent link
Morten Bundgaard Selmer (1123) | answered Nov 28 '12, 1:11 p.m.
 Thanks for a  fast reply Sam :) I didn't get as close to a solution as I'd hope though.

In my plugin I implement IStartup and I've added this to the override of earlyStartup()

IWorkItemActivationManager manager = ClientModel.getWorkItemActivationManager();
manager.addActivationParticipant(new MyWorkItemActivationParticipant());

and this is my WorkItemActivationParticipantMonitor class

public class WorkItemActivationParticipantMonitor extends WorkItemActivationParticipant {
@Override
public IStatus handleActivationEvent(WorkItemActivationEvent event, IProgressMonitor monitor) {
                System.out.println("activationParticipant Triggered");
return super.handleActivationEvent(event, monitor);
}

but MyWorkItemActivationParticipant.handleActivationEvent is never triggered (scenario is opening a plan into the Plan Editor)


permanent link
sam detweiler (12.4k6178201) | answered Nov 28 '12, 2:41 p.m.
a plan is not a workitem.. I have never used the client side listener

permanent link
Morten Bundgaard Selmer (1123) | answered Nov 29 '12, 8:56 a.m.
 hmm found that the Jazz Metronome provides the information I need
now I only need to hook in to get the data myself and store them.

Your answer


Register or to post your answer.