summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-02-24 14:15:28 +0000
committerTed Ross <tross@apache.org>2009-02-24 14:15:28 +0000
commit043cfb51401c11dbe9a9db7c07580f3ff84efb3b (patch)
treebf265ab71177abf6184750bb610cb5009fe12671 /qpid/python
parent37d3f0675c0b7f6052c14d104a6b03e78b86965a (diff)
downloadqpid-python-043cfb51401c11dbe9a9db7c07580f3ff84efb3b.tar.gz
QPID-1676 - Added client process name and pid to connection object for management.
Supported in C++, Python, and Ruby clients. Still needs to be added to the Java clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@747389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/delegates.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/python/qpid/delegates.py b/qpid/python/qpid/delegates.py
index 7cfd9b11db..a720e2e1c7 100644
--- a/qpid/python/qpid/delegates.py
+++ b/qpid/python/qpid/delegates.py
@@ -21,6 +21,7 @@ import os, connection, session
from util import notify
from datatypes import RangedSet
from logging import getLogger
+import sys
log = getLogger("qpid.io.ctl")
@@ -141,7 +142,10 @@ class Client(Delegate):
PROPERTIES = {"product": "qpid python client",
"version": "development",
- "platform": os.name}
+ "platform": os.name,
+ "qpid.client_process": os.path.basename(sys.argv[0]),
+ "qpid.client_pid": os.getpid(),
+ "qpid.client_ppid": os.getppid()}
def __init__(self, connection, username="guest", password="guest",
mechanism="PLAIN", heartbeat=None):