[DO NOT MERGE] 92/6992/2
authorFlavio Fernandes <ffernand@redhat.com>
Wed, 14 May 2014 12:56:58 +0000 (08:56 -0400)
committerFlavio Fernandes <ffernand@redhat.com>
Thu, 15 May 2014 19:30:15 +0000 (15:30 -0400)
commite936e98189184f4d1268b89b040ca558d8e805c4
tree49155768b8790e3a030334ce9672855e1c98f168
parent6835e2211a435560be6f10d79aeeb237eb0d04e6
[DO NOT MERGE]

This is an extenstion 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/stop/{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/stop/${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/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