diff options
| author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-04-23 14:56:19 +0000 |
|---|---|---|
| committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-04-23 14:56:19 +0000 |
| commit | 458aac0b488205d7572aa5f34c7710d40add55a5 (patch) | |
| tree | ddc0d1db52793ff08d52f1f75baf771e01e964e0 /qpid/extras | |
| parent | 4bb49869f0a021051918f62972fc9bd5aee8aaf2 (diff) | |
| download | qpid-python-458aac0b488205d7572aa5f34c7710d40add55a5.tar.gz | |
qmf: python console - fix datestamps, add accessors for object name and agent
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@937318 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/extras')
| -rw-r--r-- | qpid/extras/qmf/src/py/qmf/console.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qpid/extras/qmf/src/py/qmf/console.py b/qpid/extras/qmf/src/py/qmf/console.py index 3a9b5e8aa6..96f26e205c 100644 --- a/qpid/extras/qmf/src/py/qmf/console.py +++ b/qpid/extras/qmf/src/py/qmf/console.py @@ -195,6 +195,18 @@ class Object(object): else: self._objectId = None + self._currentTime = omap.get("update_ts", 0) + self._createTime = omap.get("create_ts", 0) + self._deleteTime = omap.get("delete_ts", 0) + + def getName(self): + """ Return this object's agent-unique name """ + return self.getObjectId().objectName + + def getAgent(self): + """ Return the agent from which this object was sent """ + return self._agent + def getBroker(self): """ Return the broker from which this object was sent """ return self._broker |
