From 0fafeeacf4661085eb97a79d002e1d125c0a232a Mon Sep 17 00:00:00 2001 From: Jozef Gloncak Date: Fri, 10 Apr 2015 13:46:22 +0200 Subject: [PATCH] Added calling of super constructor to PacketProcessingServiceImpl Change-Id: I45e8e56d122194b6ebe635314d89b03e6df251c4 Signed-off-by: Jozef Gloncak --- .../impl/services/PacketProcessingServiceImpl.java | 7 +++++++ .../openflowplugin/impl/util/MdSalRegistratorUtils.java | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/PacketProcessingServiceImpl.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/PacketProcessingServiceImpl.java index 975006481d..d2f49d1b1a 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/PacketProcessingServiceImpl.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/PacketProcessingServiceImpl.java @@ -7,6 +7,9 @@ */ package org.opendaylight.openflowplugin.impl.services; +import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext; +import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack; + import com.google.common.base.Function; import com.google.common.util.concurrent.JdkFutureAdapters; import com.google.common.util.concurrent.ListenableFuture; @@ -22,6 +25,10 @@ import org.opendaylight.yangtools.yang.common.RpcResult; public class PacketProcessingServiceImpl extends CommonService implements PacketProcessingService { + public PacketProcessingServiceImpl(final RequestContextStack requestContextStack, final DeviceContext deviceContext) { + super(requestContextStack, deviceContext); + } + @Override public Future> transmitPacket(final TransmitPacketInput input) { diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/util/MdSalRegistratorUtils.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/util/MdSalRegistratorUtils.java index be5ebd442d..26d081d4cb 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/util/MdSalRegistratorUtils.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/util/MdSalRegistratorUtils.java @@ -33,10 +33,11 @@ public class MdSalRegistratorUtils { public static void registerServices(final RpcContext rpcContext, final DeviceContext deviceContext) { rpcContext.registerRpcServiceImplementation(SalFlowService.class, new SalFlowServiceImpl(rpcContext, deviceContext)); + //TODO: add constructors with rcpContext and deviceContext to meter, group, table constructors rpcContext.registerRpcServiceImplementation(SalMeterService.class, new SalMeterServiceImpl()); rpcContext.registerRpcServiceImplementation(SalGroupService.class, new SalGroupServiceImpl()); rpcContext.registerRpcServiceImplementation(SalTableService.class, new SalTableServiceImpl()); - rpcContext.registerRpcServiceImplementation(PacketProcessingService.class, new PacketProcessingServiceImpl()); + rpcContext.registerRpcServiceImplementation(PacketProcessingService.class, new PacketProcessingServiceImpl(rpcContext, deviceContext)); rpcContext.registerRpcServiceImplementation(NodeConfigService.class, new NodeConfigServiceImpl()); } } -- 2.36.6