*/
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;
public class PacketProcessingServiceImpl extends CommonService implements PacketProcessingService {
+ public PacketProcessingServiceImpl(final RequestContextStack requestContextStack, final DeviceContext deviceContext) {
+ super(requestContextStack, deviceContext);
+ }
+
@Override
public Future<RpcResult<Void>> transmitPacket(final TransmitPacketInput input) {
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());
}
}