Add multipart request message serializers
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / rpc / RpcContextImpl.java
index 89c66b8a649134fff9416c93c92050a6a65b6311..2bb0cbee8d6b9b4eb9fa6ac5f014dbe1c2f1c429 100644 (file)
@@ -110,14 +110,7 @@ class RpcContextImpl implements RpcContext {
      */
     @Override
     public void close() {
-        if (!CONTEXT_STATE.TERMINATION.equals(this.state)){
-            try {
-                stopClusterServices().get();
-            } catch (InterruptedException | ExecutionException e) {
-                LOG.debug("Failed to close RpcContext for node {} with exception: ", getDeviceInfo().getLOGValue(), e);
-            }
-            this.state = CONTEXT_STATE.TERMINATION;
-        }
+        //NOOP
     }
 
     @Override
@@ -210,7 +203,7 @@ class RpcContextImpl implements RpcContext {
 
         MdSalRegistrationUtils.registerServices(this, deviceContext, extensionConverterProvider, convertorExecutor);
 
-        if (isStatisticsRpcEnabled) {
+        if (isStatisticsRpcEnabled && !deviceContext.canUseSingleLayerSerialization()) {
             MdSalRegistrationUtils.registerStatCompatibilityServices(
                     this,
                     deviceContext,