| [mylar-dev] Mylar Monitor |
Here are my first ideas how this could be done: 1. It looks like I can use this code to upload the Action
History Files – I want to do this automatically as a background task
(Job) at a scheduled time org.eclipse.mylar.internal.monitor.usage.ui.wizards.UsageSubmissionWizard
public void performUpload (IProgressMonitor monitor) { * Method to
upload a file to a cgi script
private void upload(File f, String type, IProgressMonitor
monitor) – not really sure what type of cgi script would be uploaded?
Is there an example of how this works? 2. I think org.eclipse.mylar.internal.monitor.reports
processes Action History Files in org.eclipse.mylar.internal.monitor.reports.ui.actions.EclipseUsageSummaryAction
in the method run that calls getStatsFilesFromSelection gets a list of
Action History files. I think it uses a visitor pattern for calling
various usage collection routines. The routines include
org.eclipse.mylar.monitor.usage.core.collectors.SummaryCollectory which gets
counts of events, commands, preference changes, and selections. It
looks like I can tell whether the action was a SELECTION, EDIT, COMMAND or
PREFERENCE. It doesn’t look like there is a way to determine the
file was “committed” to a Source Control Repository. How hard
is it to add additional InteractionEvent.Kinds? is there another way to
do this? would it scale if I added many? 3. I would run the org.eclipse.mylar.internal.monitor.reports.ui.actions
such as EclipseUsageSummaryAction headless on the Corona Server. Does
anyone have any suggestions on what classes to look at converting to remove the
GUI code or how much work this would be? Any suggestions would be appreciated Glenn Everitt |