2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.openflowplugin.impl.util;
10 import org.opendaylight.openflowplugin.api.openflow.rpc.RpcContext;
11 import org.opendaylight.openflowplugin.impl.services.NodeConfigServiceImpl;
12 import org.opendaylight.openflowplugin.impl.services.OpendaylightFlowStatisticsServiceImpl;
13 import org.opendaylight.openflowplugin.impl.services.OpendaylightFlowTableStatisticsServiceImpl;
14 import org.opendaylight.openflowplugin.impl.services.OpendaylightGroupStatisticsServiceImpl;
15 import org.opendaylight.openflowplugin.impl.services.OpendaylightMeterStatisticsServiceImpl;
16 import org.opendaylight.openflowplugin.impl.services.OpendaylightPortStatisticsServiceImpl;
17 import org.opendaylight.openflowplugin.impl.services.OpendaylightQueueStatisticsServiceImpl;
18 import org.opendaylight.openflowplugin.impl.services.PacketProcessingServiceImpl;
19 import org.opendaylight.openflowplugin.impl.services.SalFlowServiceImpl;
20 import org.opendaylight.openflowplugin.impl.services.SalGroupServiceImpl;
21 import org.opendaylight.openflowplugin.impl.services.SalMeterServiceImpl;
22 import org.opendaylight.openflowplugin.impl.services.SalTableServiceImpl;
23 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService;
24 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.OpendaylightFlowStatisticsService;
25 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.OpendaylightFlowTableStatisticsService;
26 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.SalGroupService;
27 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.statistics.rev131111.OpendaylightGroupStatisticsService;
28 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.SalMeterService;
29 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.OpendaylightMeterStatisticsService;
30 import org.opendaylight.yang.gen.v1.urn.opendaylight.module.config.rev141015.NodeConfigService;
31 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
32 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.OpendaylightPortStatisticsService;
33 import org.opendaylight.yang.gen.v1.urn.opendaylight.queue.statistics.rev131216.OpendaylightQueueStatisticsService;
34 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
40 public class MdSalRegistratorUtils {
42 private MdSalRegistratorUtils() {
43 throw new IllegalStateException();
46 public static void registerServices(final RpcContext rpcContext) {
47 rpcContext.registerRpcServiceImplementation(SalFlowService.class, new SalFlowServiceImpl(rpcContext));
48 rpcContext.registerRpcServiceImplementation(SalFlowService.class, new SalFlowServiceImpl(rpcContext));
49 rpcContext.registerRpcServiceImplementation(SalMeterService.class, new SalMeterServiceImpl(rpcContext));
50 rpcContext.registerRpcServiceImplementation(SalGroupService.class, new SalGroupServiceImpl(rpcContext));
51 rpcContext.registerRpcServiceImplementation(SalTableService.class, new SalTableServiceImpl(rpcContext));
52 rpcContext.registerRpcServiceImplementation(PacketProcessingService.class, new PacketProcessingServiceImpl(rpcContext));
53 rpcContext.registerRpcServiceImplementation(OpendaylightFlowStatisticsService.class,
54 new OpendaylightFlowStatisticsServiceImpl(rpcContext));
55 rpcContext.registerRpcServiceImplementation(OpendaylightGroupStatisticsService.class,
56 new OpendaylightGroupStatisticsServiceImpl(rpcContext));
57 rpcContext.registerRpcServiceImplementation(OpendaylightMeterStatisticsService.class,
58 new OpendaylightMeterStatisticsServiceImpl(rpcContext));
59 rpcContext.registerRpcServiceImplementation(OpendaylightPortStatisticsService.class,
60 new OpendaylightPortStatisticsServiceImpl(rpcContext));
61 rpcContext.registerRpcServiceImplementation(NodeConfigService.class, new NodeConfigServiceImpl(rpcContext));
62 rpcContext.registerRpcServiceImplementation(OpendaylightFlowTableStatisticsService.class,
63 new OpendaylightFlowTableStatisticsServiceImpl(rpcContext));
64 rpcContext.registerRpcServiceImplementation(OpendaylightQueueStatisticsService.class,
65 new OpendaylightQueueStatisticsServiceImpl(rpcContext));