airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1427993 - in /airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor: Monitor.java MonitorEventListener.java
Date Wed, 02 Jan 2013 20:18:25 GMT
Author: samindaw
Date: Wed Jan  2 20:18:25 2013
New Revision: 1427993

URL: http://svn.apache.org/viewvc?rev=1427993&view=rev
Log:
updating stop triggers & adding comments to the monitoring listener interface

Modified:
    airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/Monitor.java
    airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/MonitorEventListener.java

Modified: airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/Monitor.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/Monitor.java?rev=1427993&r1=1427992&r2=1427993&view=diff
==============================================================================
--- airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/Monitor.java
(original)
+++ airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/Monitor.java
Wed Jan  2 20:18:25 2013
@@ -181,12 +181,12 @@ public class Monitor extends EventProduc
      * @throws MonitorException
      */
     public synchronized void stop() throws MonitorException {
-    	getEventData().triggerListenerForPreMonitorStop();
         if (this.wsmgClient != null) {
+        	getEventData().triggerListenerForPreMonitorStop();
             unsubscribe(this.wsmgClient);
             this.wsmgClient = null;
+            getEventData().triggerListenerForPostMonitorStop();
         }
-        getEventData().triggerListenerForPostMonitorStop();
     }
 
     /**

Modified: airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/MonitorEventListener.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/MonitorEventListener.java?rev=1427993&r1=1427992&r2=1427993&view=diff
==============================================================================
--- airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/MonitorEventListener.java
(original)
+++ airavata/trunk/modules/ws-messenger/message-monitor/src/main/java/org/apache/airavata/ws/monitor/MonitorEventListener.java
Wed Jan  2 20:18:25 2013
@@ -22,11 +22,37 @@
 package org.apache.airavata.ws.monitor;
 
 public interface MonitorEventListener {
+	
+	/**
+	 * Gets triggered when a new message is received relevant for the experiment subscribed
to
+	 * @param eventData - Contains a collection of events up to this point in monitoring
+	 * @param event - the new message related to the experiment
+	 */
 	public void notify(MonitorEventData eventData, MonitorEvent event);
+	
+	/**
+	 * Set the Monitor object
+	 * @param monitor
+	 */
 	public void setExperimentMonitor(Monitor monitor);
+	
+	/**
+	 * Gets triggered just before the experiment monitoring is started
+	 */
 	public void monitoringPreStart();
+	
+	/**
+	 * Gets triggered just after the experiment monitoring is started
+	 */
 	public void monitoringPostStart();
 	
+	/**
+	 * Gets triggered just before the experiment monitoring is stopped
+	 */
 	public void monitoringPreStop();
+	
+	/**
+	 * Gets triggered just after the experiment monitoring is stopped
+	 */
 	public void monitoringPostStop();
 }



Mime
View raw message