BUG-3219: Fix OutboundQueue request error reporting 66/20966/1
authorRobert Varga <rovarga@cisco.com>
Sat, 16 May 2015 22:34:50 +0000 (00:34 +0200)
committerMichal Polkorab <michal.polkorab@pantheon.sk>
Fri, 22 May 2015 11:01:21 +0000 (13:01 +0200)
commitab55df73c5fc08aa365af5ed9c1b0b0395b9211e
tree0a7afce3dc9009f8ceeb41d1886a5ae8e8515521
parentfb9acb169ef0a012490d8c6e122a24517e8624d3
BUG-3219: Fix OutboundQueue request error reporting

Original patch failed to describe how errors are reported when they
arrive in an ErrorMessage or are generated by the local system.

The only error path interface is the onFailure() method in the callback
the user specifies. This fits naturally, as we now define
DeviceRequestFailedException to carry the encapsulated message and pass
it to the callback.

Change-Id: Ie8eb62558991ceb7f6d5eb8d7cd547aecaf63f19
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit ccb7e5bda0598185f98d52ddd16e49ae4d48e5aa)
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/DeviceRequestFailedException.java [new file with mode: 0644]
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/OutboundQueue.java
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/ConnectionAdapterImpl.java
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java