diff options
author | Ted Ross <tross@apache.org> | 2008-07-31 21:58:39 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2008-07-31 21:58:39 +0000 |
commit | 2bb04f798f13d3120096a9fb2ee30d224fbd981a (patch) | |
tree | e30452f821a548f769af215f00d4424870b99ef5 /python | |
parent | b9d38e9f08908220f9bbf804a45656e4205e3dfd (diff) | |
download | qpid-python-2bb04f798f13d3120096a9fb2ee30d224fbd981a.tar.gz |
Added signed integer datatypes for use in management schemas
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681512 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r-- | python/qpid/management.py | 16 | ||||
-rw-r--r-- | python/qpid/managementdata.py | 11 |
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) |