summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/qpid/management.py16
-rw-r--r--python/qpid/managementdata.py11
2 files changed, 26 insertions, 1 deletions
diff --git a/python/qpid/management.py b/python/qpid/management.py
index 1059c70ada..83c29a78a5 100644
--- a/python/qpid/management.py
+++ b/python/qpid/management.py
@@ -397,6 +397,14 @@ class managementClient:
codec.write_uuid (value)
elif typecode == 15: # FTABLE
codec.write_map (value)
+ elif typecode == 16:
+ codec.write_int8 (int(value))
+ elif typecode == 17:
+ codec.write_int16 (int(value))
+ elif typecode == 18:
+ codec.write_int32 (int(value))
+ elif typecode == 19:
+ codec.write_int64 (int(value))
else:
raise ValueError ("Invalid type code: %d" % typecode)
@@ -432,6 +440,14 @@ class managementClient:
data = codec.read_uuid ()
elif typecode == 15: # FTABLE
data = codec.read_map ()
+ elif typecode == 16:
+ data = codec.read_int8 ()
+ elif typecode == 17:
+ data = codec.read_int16 ()
+ elif typecode == 18:
+ data = codec.read_int32 ()
+ elif typecode == 19:
+ data = codec.read_int64 ()
else:
raise ValueError ("Invalid type code: %d" % typecode)
return data
diff --git a/python/qpid/managementdata.py b/python/qpid/managementdata.py
index f6ebf4a381..e75cd8a99d 100644
--- a/python/qpid/managementdata.py
+++ b/python/qpid/managementdata.py
@@ -222,7 +222,8 @@ class ManagementData:
if item[0] == key:
typecode = item[1]
unit = item[2]
- if (typecode >= 1 and typecode <= 5) or typecode == 12 or typecode == 13: # numerics
+ if (typecode >= 1 and typecode <= 5) or typecode == 12 or typecode == 13 or \
+ (typecode >= 16 and typecode <= 19):
if unit == None or unit == self.lastUnit:
return str (value)
else:
@@ -329,6 +330,14 @@ class ManagementData:
return "uuid"
elif typecode == 15:
return "field-table"
+ elif typecode == 16:
+ return "int8"
+ elif typecode == 17:
+ return "int16"
+ elif typecode == 18:
+ return "int32"
+ elif typecode == 19:
+ return "int64"
else:
raise ValueError ("Invalid type code: %d" % typecode)