-
Notifications
You must be signed in to change notification settings - Fork 0
Part of Broker http://omf.mytestbed.net/projects/omf/wiki/BrokerDesign
dostavro/AM_Liaison
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
RDoc available here: http://rubydoc.info/github/dostavro/AM_Liaison/master/frames In order to test AM Liaison run the following commands from the am_liaison/test directory. The following files assume there is an XMPP server installed on the machine. If you want to use another XMPP server just change the constants in the beginning of the files. First of all, start a dummy OMF AM which just creates a topic in the XMPP server with its name and prints the received messages - ruby create_am_topic.rb Then run the script which tests the AM Liaison with the following order: 1. Creates a new instance of AM Liaison with a database at "/tmp/am_liaison.db" 2. Creates a new OMF AM with urn same as the topic we created above 3. Attachs the OMF AM to the list of the AM Liaison 4. We create 2 tasks in the database of the AM Liaison for execution in 10 and 15 seconds respectively 5. We actually schedule these tasks which results in the creation of two timers 6. We cancel the second task before it fires the event 7. We wait for the first timer to fire the event and send a create message to the dummy OMF AM 8. After the XMPP event, just stop them with CTRL+C - ruby -I ../lib/ -I ../../omf_common/lib/ test_am_liaison.rb
About
Part of Broker http://omf.mytestbed.net/projects/omf/wiki/BrokerDesign
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published