summaryrefslogtreecommitdiff
path: root/cpp/bindings/qmf2/examples/ruby/find_agents.rb
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
commite46939c93ba0682d74f025eeec7bdb88229b4277 (patch)
treeeb55184ad87bc9c31168bf955256959541fc117b /cpp/bindings/qmf2/examples/ruby/find_agents.rb
parente7f02a8b8b25d9fcce6525ccc5b794f8438995f0 (diff)
downloadqpid-python-e46939c93ba0682d74f025eeec7bdb88229b4277.tar.gz
Added missing even handling in the console.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1067111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf2/examples/ruby/find_agents.rb')
-rw-r--r--cpp/bindings/qmf2/examples/ruby/find_agents.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/bindings/qmf2/examples/ruby/find_agents.rb b/cpp/bindings/qmf2/examples/ruby/find_agents.rb
index deefd5491a..712e5007be 100644
--- a/cpp/bindings/qmf2/examples/ruby/find_agents.rb
+++ b/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