summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2010-07-08 20:29:52 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2010-07-08 20:29:52 +0000
commit459f48df9d6b62a0f72be50c8ce082c1317c736e (patch)
tree144cf9f423de1fb798868ed22229ce159738d714 /extras
parentdf239e9f6987f45162d7ccd6459f1b73a81b39f9 (diff)
downloadqpid-python-459f48df9d6b62a0f72be50c8ce082c1317c736e.tar.gz
QMF: add api to get agent id, and new object id constructor that uses agent id.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'extras')
-rw-r--r--extras/qmf/src/py/qmf/console.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/qmf/src/py/qmf/console.py b/extras/qmf/src/py/qmf/console.py
index 57e992418b..385cfdfedd 100644
--- a/extras/qmf/src/py/qmf/console.py
+++ b/extras/qmf/src/py/qmf/console.py
@@ -1782,6 +1782,13 @@ class ObjectId:
self.agentEpoch = (first & 0x0FFF000000000000) >> 48
self.objectName = str(second)
+ def _create(cls, agent_name, object_name, epoch=0):
+ oid = {"_agent_name": agent_name,
+ "_object_name": object_name,
+ "_agent_epoch": epoch}
+ return cls(oid)
+ create = classmethod(_create)
+
def __cmp__(self, other):
if other == None or not isinstance(other, ObjectId) :
return 1