2 * Copyright (c) 2015 Cisco Systems 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 rpcbenchmark.impl;
10 import org.opendaylight.mdsal.binding.api.RpcProviderService;
11 import org.opendaylight.yang.gen.v1.rpcbench.payload.rev150702.RpcbenchPayloadService;
12 import org.opendaylight.yangtools.concepts.Registration;
13 import org.osgi.service.component.annotations.Reference;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
17 final class GlobalBindingRTCServer extends AbstractRpcbenchPayloadService implements AutoCloseable {
18 private static final Logger LOG = LoggerFactory.getLogger(GlobalBindingRTCServer.class);
20 private final Registration reg;
22 GlobalBindingRTCServer(@Reference final RpcProviderService rpcProvider) {
23 reg = rpcProvider.registerRpcImplementation(RpcbenchPayloadService.class, this);
24 LOG.debug("GlobalBindingRTCServer started");
30 LOG.debug("GlobalBindingRTCServer stopped");