Remove unused routedRpcRegistration
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / statistics / services / GetNodeConnectorStatisticsImpl.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.openflowplugin.impl.statistics.services;
9
10 import com.google.common.util.concurrent.ListenableFuture;
11 import java.util.concurrent.atomic.AtomicLong;
12 import org.opendaylight.mdsal.binding.api.NotificationPublishService;
13 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
14 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.GetNodeConnectorStatistics;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.GetNodeConnectorStatisticsInput;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.GetNodeConnectorStatisticsOutput;
18 import org.opendaylight.yangtools.yang.common.RpcResult;
19
20 @Deprecated
21 public final class GetNodeConnectorStatisticsImpl implements GetNodeConnectorStatistics {
22     private final PortStatsService portStats;
23     private final NotificationPublishService notificationPublishService;
24
25     public GetNodeConnectorStatisticsImpl(final RequestContextStack requestContextStack,
26                                                  final DeviceContext deviceContext,
27                                                  final AtomicLong compatibilityXidSeed,
28                                                  final NotificationPublishService notificationPublishService) {
29         this.notificationPublishService = notificationPublishService;
30         portStats = new PortStatsService(requestContextStack, deviceContext, compatibilityXidSeed);
31     }
32
33     @Override
34     public ListenableFuture<RpcResult<GetNodeConnectorStatisticsOutput>> invoke(
35             final GetNodeConnectorStatisticsInput input) {
36         return portStats.handleAndNotify(input, notificationPublishService);
37     }
38 }