import java.util.concurrent.atomic.AtomicLong;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.mdsal.binding.api.NotificationPublishService;
+import org.opendaylight.openflowplugin.api.openflow.FlowGroupCacheManager;
import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
import org.opendaylight.openflowplugin.api.openflow.rpc.RpcContext;
import org.opendaylight.openflowplugin.api.openflow.statistics.compatibility.Delegator;
public static void registerServices(@NonNull final RpcContext rpcContext,
@NonNull final DeviceContext deviceContext,
final ExtensionConverterProvider extensionConverterProvider,
- final ConvertorExecutor convertorExecutor) {
+ final ConvertorExecutor convertorExecutor,
+ final FlowGroupCacheManager flowGroupCacheManager) {
// TODO: Use multipart writer provider from device context
final MultipartWriterProvider multipartWriterProvider = MultipartWriterProviderFactory
.createDefaultProvider(deviceContext);
// create service instances
- final SalFlowServiceImpl salFlowService = new SalFlowServiceImpl(rpcContext, deviceContext, convertorExecutor);
+ final SalFlowServiceImpl salFlowService = new SalFlowServiceImpl(rpcContext, deviceContext,
+ convertorExecutor, flowGroupCacheManager);
final FlowCapableTransactionServiceImpl flowCapableTransactionService =
new FlowCapableTransactionServiceImpl(rpcContext, deviceContext);
final SalAsyncConfigServiceImpl salAsyncConfigService =
new SalAsyncConfigServiceImpl(rpcContext, deviceContext);
final SalGroupServiceImpl salGroupService =
- new SalGroupServiceImpl(rpcContext, deviceContext, convertorExecutor);
+ new SalGroupServiceImpl(rpcContext, deviceContext, convertorExecutor, flowGroupCacheManager);
final SalMeterServiceImpl salMeterService =
new SalMeterServiceImpl(rpcContext, deviceContext, convertorExecutor);