Permalink
Browse files

Add a Task.owner property

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
  • Loading branch information...
1 parent 20cd4b2 commit e6f738bc9aa14edbd7f87ee5ed0771e2a9a7708c David Scott committed Feb 11, 2014
Showing with 11 additions and 1 deletion.
  1. +2 −1 dbus/vm/python/dbus-resource-script.py
  2. +9 −0 dbus/vm/task.xml
@@ -246,7 +246,8 @@ def Get(self, interface_name, property_name):
def GetAll(self, interface_name):
if interface_name == TASK_INTERFACE:
return { 'completed': self.completed,
- 'cancelling': self.canceller <> None }
+ 'cancelling': self.canceller <> None,
+ 'owner': self.owner_uri }
else:
raise dbus.exceptions.DBusException(
'com.example.UnknownInterface',
View
@@ -28,6 +28,15 @@
</doc:description>
</doc:doc>
</property>
+ <property name="owner" type="s" access="read">
+ <doc:doc>
+ <doc:description>
+ <doc:para>
+ A URI which names a taskOwner instance. The taskOwner will be asked periodically whether it still believes it owns the task. This catches the case where a task owner crashes and forgets; a well-behaved taskOwner will always call destroy when it has no further use for the task results.
+ </doc:para>
+ </doc:description>
+ </doc:doc>
+ </property>
<signal name="Completed">
<doc:doc>
<doc:description>

0 comments on commit e6f738b

Please sign in to comment.