diff options
| author | Ted Ross <tross@apache.org> | 2009-10-02 21:43:22 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-10-02 21:43:22 +0000 |
| commit | f81547080ee98c69f6f505a388b504644f7197a8 (patch) | |
| tree | fc29f1cba5438cbe2c5a5fba498a1fc9781466bf /cpp/bindings/qmf/ruby | |
| parent | ee477a65e6ac9532a27cdf589df6d9aba7d97796 (diff) | |
| download | qpid-python-f81547080ee98c69f6f505a388b504644f7197a8.tar.gz | |
QMF Fixes in Ruby Console:
- AgentProxy object now has broker_bank and agent_bank accessors
- Fixed a bug in the returning og reference values (ObjectId)
- Added package_name accessor to SchemaObjectClass
- Added accessors for agent/broker bank to ObjectId
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf/ruby')
| -rw-r--r-- | cpp/bindings/qmf/ruby/qmf.rb | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/cpp/bindings/qmf/ruby/qmf.rb b/cpp/bindings/qmf/ruby/qmf.rb index f79fb5ed88..fbf95215fd 100644 --- a/cpp/bindings/qmf/ruby/qmf.rb +++ b/cpp/bindings/qmf/ruby/qmf.rb @@ -252,7 +252,7 @@ module Qmf when TYPE_SSTR, TYPE_LSTR then val.asString when TYPE_ABSTIME then val.asInt64 when TYPE_DELTATIME then val.asUint64 - when TYPE_REF then val.asObjectId + when TYPE_REF then ObjectId.new(val.asObjectId) when TYPE_BOOL then val.asBool when TYPE_FLOAT then val.asFloat when TYPE_DOUBLE then val.asDouble @@ -463,11 +463,19 @@ module Qmf end def object_num_high - return @impl.getObjectNumHi + @impl.getObjectNumHi end def object_num_low - return @impl.getObjectNumLo + @impl.getObjectNumLo + end + + def broker_bank + @impl.getBrokerBank + end + + def agent_bank + @impl.getAgentBank end def ==(other) @@ -522,7 +530,7 @@ module Qmf when TYPE_SSTR, TYPE_LSTR then val.asString when TYPE_ABSTIME then val.asInt64 when TYPE_DELTATIME then val.asUint64 - when TYPE_REF then val.asObjectId + when TYPE_REF then ObjectId.new(val.asObjectId) when TYPE_BOOL then val.asBool when TYPE_FLOAT then val.asFloat when TYPE_DOUBLE then val.asDouble @@ -796,7 +804,15 @@ module Qmf @impl.addMethod(meth.impl) end - def name + def class_key + SchemaClassKey.new(@impl.getClassKey) + end + + def package_name + @impl.getClassKey.getPackageName + end + + def class_name @impl.getClassKey.getClassName end end @@ -1027,14 +1043,23 @@ module Qmf def label @impl.getLabel end + + def broker_bank + @impl.getBrokerBank + end + + def agent_bank + @impl.getAgentBank + end end class Broker < ConnectionHandler include MonitorMixin - attr_reader :impl, :conn, :console + attr_reader :impl, :conn, :console, :broker_bank def initialize(console, conn) super() + @broker_bank = 1 @console = console @conn = conn @session = nil @@ -1281,5 +1306,4 @@ module Qmf do_events end end - end |
