summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings/qmf2/examples/ruby
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-02-04 08:22:30 +0000
committerTed Ross <tross@apache.org>2011-02-04 08:22:30 +0000
commit6b455d864349e7b90369fd424051210599fc9565 (patch)
treed2ee978f7f82a5338f773ee763eff7a86bf4af23 /qpid/cpp/bindings/qmf2/examples/ruby
parentab57937c2f608245bae1671e52620cd4daf96414 (diff)
downloadqpid-python-6b455d864349e7b90369fd424051210599fc9565.tar.gz
Added missing even handling in the console.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1067111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf2/examples/ruby')
-rw-r--r--qpid/cpp/bindings/qmf2/examples/ruby/find_agents.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/bindings/qmf2/examples/ruby/find_agents.rb b/qpid/cpp/bindings/qmf2/examples/ruby/find_agents.rb
index deefd5491a..712e5007be 100644
--- a/qpid/cpp/bindings/qmf2/examples/ruby/find_agents.rb
+++ b/qpid/cpp/bindings/qmf2/examples/ruby/find_agents.rb
@@ -41,6 +41,10 @@ class FindAgents < Qmf2::ConsoleHandler
def agent_schema_updated(agent)
puts "Agent with new Schemata: #{agent.to_s}"
end
+
+ def event_raised(agent, data, timestamp, severity)
+ puts "Event Raised time=#{timestamp} sev=#{severity} data=#{data.properties}"
+ end
end