forked from xapi-project/xapi-storage
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a 'taskOwner' who must recognise a task to keep it alive
The creator of a task is responsible for destroying it. To highlight bugs where a task creator fails in their duty, we add the concept of a task 'owner'. The owner must acknowledge their interest in active tasks every 30s or so, otherwise the tasks are 'destroy' (i.e. set to automatically disappear on completion). Note that 'destroy' only removes the object *when the activity has finished*. It does not auto-cancel. Signed-off-by: David Scott <dave.scott@eu.citrix.com>
- Loading branch information
David Scott
committed
Feb 11, 2014
1 parent
6cfe9f6
commit 20cd4b2
Showing
3 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE node PUBLIC | ||
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" | ||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> | ||
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> | ||
<interface name="org.xenserver.api.taskOwner"> | ||
<method name="ping"> | ||
<arg name="tasks" type="as" direction="in"/> | ||
<arg name="alive" type="ab" direction="out"/> | ||
</method> | ||
</interface> | ||
</node> |