Added API for performance API
diff --git a/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PerformanceMonitorUtil.java b/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PerformanceMonitorUtil.java
index 6917d0f..e58a1a4 100644
--- a/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PerformanceMonitorUtil.java
+++ b/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PerformanceMonitorUtil.java
@@ -10,7 +10,7 @@
*******************************************************************************/
/*
* $RCSfile: PerformanceMonitorUtil.java,v $
- * $Revision: 1.2 $ $Date: 2005/01/12 16:57:32 $
+ * $Revision: 1.3 $ $Date: 2005/02/02 20:51:09 $
*/
package org.eclipse.jem.util;
import java.util.EventObject;
@@ -259,5 +259,15 @@
listeners = newList;
}
}
-
+ /**
+ * Upload the results to the server. This causes the file to be
+ * closed, and the monitor to be placed into the finished state.
+ *
+ * This method can only be called if the uploadhost, uploadport and uploaduserid
+ * have been configured before hand.
+ *
+ * @param description an optional description (it can be null)
+ *
+ */
+ public boolean upload(String description){return false;}
}
\ No newline at end of file
diff --git a/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PresentPerformanceMonitor.java b/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PresentPerformanceMonitor.java
index f7e4a17..672977a 100644
--- a/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PresentPerformanceMonitor.java
+++ b/plugins/org.eclipse.jem.util/jemutil/org/eclipse/jem/util/PresentPerformanceMonitor.java
@@ -10,7 +10,7 @@
*******************************************************************************/
/*
* $RCSfile: PresentPerformanceMonitor.java,v $
- * $Revision: 1.2 $ $Date: 2005/01/12 16:57:32 $
+ * $Revision: 1.3 $ $Date: 2005/02/02 20:51:09 $
*/
package org.eclipse.jem.util;
import org.eclipse.perfmsr.core.IPerformanceMonitor;
@@ -27,6 +27,13 @@
*/
public class PresentPerformanceMonitor extends PerformanceMonitorUtil {
+ /* (non-Javadoc)
+ * @see org.eclipse.jem.util.PerformanceMonitorUtil#upload(java.lang.String)
+ */
+ public boolean upload(String description) {
+ return monitor.upload(description).success;
+ }
+
private IPerformanceMonitor monitor;
/*