Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Need to hook in a listener to measure load time

 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

0 votes



5 answers

Permanent link
see this topic

https://jazz.net/forum/questions/94774/how-to-get-the-current-work-item-programmatically

0 votes


Permanent link
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

0 votes


Permanent link
 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)

0 votes


Permanent link
a plan is not a workitem.. I have never used the client side listener

0 votes


Permanent link
 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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 1,700

Question asked: Nov 28 '12, 8:34 a.m.

Question was seen: 6,907 times

Last updated: Nov 29 '12, 8:56 a.m.

Confirmation Cancel Confirm