Update the python agent publisher events with instance_id

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/102a039e
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/102a039e
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/102a039e

Branch: refs/heads/master
Commit: 102a039e081140112fd8670d8c0ff9bc546dbcad
Parents: fbb4dda
Author: gayan <[email protected]>
Authored: Thu Dec 4 20:02:20 2014 +0530
Committer: gayan <[email protected]>
Committed: Thu Dec 4 20:02:20 2014 +0530

----------------------------------------------------------------------
 .../modules/event/instance/status/events.py        | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/102a039e/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/status/events.py
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/status/events.py
 
b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/status/events.py
index c000c55..5e5e8ab 100644
--- 
a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/status/events.py
+++ 
b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/status/events.py
@@ -19,7 +19,7 @@ import json
 
 
 class InstanceActivatedEvent:
-    def __init__(self, service_name, cluster_id, network_partition_id, 
parition_id, member_id):
+    def __init__(self, service_name, cluster_id, network_partition_id, 
parition_id, member_id, instance_id):
         self.serviceName = service_name
         """ :type : str  """
         self.clusterId = cluster_id
@@ -30,13 +30,15 @@ class InstanceActivatedEvent:
         """ :type : str  """
         self.memberId = member_id
         """ :type : str  """
+        self.instanceId = instance_id
+        """ :type : str  """
 
     def to_json(self):
         return to_json(self)
 
 
 class InstanceStartedEvent:
-    def __init__(self, service_name, cluster_id, network_partition_id, 
parition_id, member_id):
+    def __init__(self, service_name, cluster_id, network_partition_id, 
parition_id, member_id,instance_id):
         self.serviceName = service_name
         """ :type : str  """
         self.clusterId = cluster_id
@@ -47,6 +49,9 @@ class InstanceStartedEvent:
         """ :type : str  """
         self.memberId = member_id
         """ :type : str  """
+        self.instanceId = instance_id
+        """ :type : str  """
+
 
     def to_json(self):
         return to_json(self)
@@ -54,7 +59,7 @@ class InstanceStartedEvent:
 
 class InstanceMaintenanceModeEvent:
 
-    def __init__(self, service_name, cluster_id, network_partition_id, 
partition_id, member_id):
+    def __init__(self, service_name, cluster_id, network_partition_id, 
partition_id, member_id, instance_id):
         self.serviceName = service_name
         """ :type : str  """
         self.clusterId = cluster_id
@@ -65,6 +70,8 @@ class InstanceMaintenanceModeEvent:
         """ :type : str  """
         self.memberId = member_id
         """ :type : str  """
+        self.instanceId = instance_id
+        """ :type : str  """
 
     def to_json(self):
         return to_json(self)
@@ -72,7 +79,7 @@ class InstanceMaintenanceModeEvent:
 
 class InstanceReadyToShutdownEvent:
 
-    def __init__(self, service_name, cluster_id, network_partition_id, 
partition_id, member_id):
+    def __init__(self, service_name, cluster_id, network_partition_id, 
partition_id, member_id, instance_id):
         self.serviceName = service_name
         """ :type : str  """
         self.clusterId = cluster_id
@@ -83,6 +90,8 @@ class InstanceReadyToShutdownEvent:
         """ :type : str  """
         self.memberId = member_id
         """ :type : str  """
+        self.instanceId = instance_id
+        """ :type : str  """
 
     def to_json(self):
         return to_json(self)

Reply via email to