[DO NOT MERGE] 92/6992/4
authorFlavio Fernandes <ffernand@redhat.com>
Wed, 14 May 2014 12:56:58 +0000 (08:56 -0400)
committerFlavio Fernandes <ffernand@redhat.com>
Tue, 20 May 2014 15:14:50 +0000 (11:14 -0400)
commit76d8a66814be207ade5e4cba867a21bb5e06054a
treefc7125655cfc0dd3c1acd8545f7a20eae08d6706
parent906afae1349b08faf47512e21fee97b7d25d4c70
[DO NOT MERGE]

This is an extension to the existing wiki page on md-sal ping tutorial.
It exposes the use of Future<> with the rpc api generated by yang-tools,
to make the ping service non-blocking; using the uris:

   .../ping/async/start/{ipAddress}
   .../ping/async/get/{ipAddress}
   .../ping/async/clear/{ipAddress}

If this becomes interesting enough, I will update the link https://wiki.opendaylight.org/view/Ping
with the stepping stones.

Example:

for x in 127.0.0.1 128.0.0.1 192.168.1.1 ;
   do curl --user "admin":"admin" -X PUT  http://localhost:8080/controller/nb/v2/ping/async/start/${x} ; echo ; done

while : ; do for x in 127.0.0.1 128.0.0.1 192.168.1.1 ;
   do curl --user "admin":"admin" -X PUT  http://localhost:8080/controller/nb/v2/ping/async/get/${x} ; echo ;
done ; sleep 2 ; done

for x in 127.0.0.1 128.0.0.1 192.168.1.1 ;
   do curl --user "admin":"admin" -X PUT  http://localhost:8080/controller/nb/v2/ping/async/clear/${x} ; echo ; done

[DO NOT MERGE]

Change-Id: Ibfaee34ace0435cac39006a7e9c6577df2bf71a8
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
opendaylight/ping/northbound/src/main/java/org/opendaylight/controller/ping/northbound/PingNorthbound.java
opendaylight/ping/plugin/src/main/java/org/opendaylight/controller/ping/plugin/internal/PingImpl.java
opendaylight/ping/service/pom.xml
opendaylight/ping/service/src/main/java/org/opendaylight/controller/ping/service/api/PingServiceAPI.java
opendaylight/ping/service/src/main/java/org/opendaylight/controller/ping/service/impl/PingServiceImpl.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.