*/
@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
MdSalRegistrationUtils.registerServices(this, deviceContext, extensionConverterProvider, convertorExecutor);
- if (isStatisticsRpcEnabled) {
+ if (isStatisticsRpcEnabled && !deviceContext.canUseSingleLayerSerialization()) {
MdSalRegistrationUtils.registerStatCompatibilityServices(
this,
deviceContext,