From fa6532edf09b45201f90beaeef62702b00d35947 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 9 Jul 2008 13:26:54 +0000 Subject: Primarily profiling driven changes: - added batched writes of commands/controls issued on a session - copy fragmented frames and segments rather than trying to decode them piecemeal, removed FragmentDecoder - added caching for str8 encode/decode - compute sizes as we encode by going back and filling in the amount of bytes written rather than computing it up front - added SYNC option to commands - renamed NO_OPTION argument to NONE - added a timeout to Client.java - removed use of UUID.fromString in BasicMessageProducer_0_10.java git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@675165 13f79535-47bb-0310-9956-ffa450edef68 --- java/common/genutil.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'java/common/genutil.py') diff --git a/java/common/genutil.py b/java/common/genutil.py index 9636a91cc3..2f1caa41c4 100644 --- a/java/common/genutil.py +++ b/java/common/genutil.py @@ -206,7 +206,7 @@ def get_fields(nd): index += 1 return fields -def get_parameters(fields): +def get_parameters(type, fields): params = [] options = False for f in fields: @@ -214,11 +214,11 @@ def get_parameters(fields): options = True else: params.append("%s %s" % (f.type, f.name)) - if options: + if options or type.name in ("control", "command"): params.append("Option ... _options") return params -def get_arguments(fields): +def get_arguments(type, fields): args = [] options = False for f in fields: @@ -226,7 +226,7 @@ def get_arguments(fields): options = True else: args.append(f.name) - if options: + if options or type.name in ("control", "command"): args.append("_options") return args -- cgit v1.2.1