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 | 2df0b393db42d098f590f6b00fb96b0c15b1f6f9 (patch) | |
| tree | c6e271c2cf17df3e3661d871856edca0e213b0aa /qpid/cpp/bindings/qmf/ruby | |
| parent | 0f7c02dae11afed532bf60302cf2185f422fd23c (diff) | |
| download | qpid-python-2df0b393db42d098f590f6b00fb96b0c15b1f6f9.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@821181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf/ruby')
| -rw-r--r-- | qpid/cpp/bindings/qmf/ruby/qmf.rb | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/qpid/cpp/bindings/qmf/ruby/qmf.rb b/qpid/cpp/bindings/qmf/ruby/qmf.rb index f79fb5ed88..fbf95215fd 100644 --- a/qpid/cpp/bindings/qmf/ruby/qmf.rb +++ b/qpid/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 |
