BUG-5581: batch read check 24/55224/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 19 Apr 2017 12:54:55 +0000 (14:54 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Apr 2017 08:48:50 +0000 (10:48 +0200)
commit85b7c8994203dd04c380f1917f2c5d2194d89e36
treef0601e0f8edbe308cc10229e8838972ea093cc5e
parentc38912ddc2033fab089547bb3b6b2cb15b2bc58d
BUG-5581: batch read check

When posting data we are executing potentially a lot of reads,
which can hurt if the backend is not residing on the node which
is executing the operations.

Fix this by issuing read requests in a batch and then collecting
the results, which means we will amortize request latency.

Change-Id: Ibf5628f6fdf56b7845b4a4623255ff4d417c4546
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/BatchedExistenceCheck.java [new file with mode: 0644]
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/BrokerFacade.java