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
9 package org.opendaylight.controller.sal.core.spi;
12 import java.util.concurrent.Future;
13 import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
14 import org.opendaylight.controller.sal.core.api.Broker.RoutedRpcRegistration;
15 import org.opendaylight.controller.sal.core.api.Broker.RpcRegistration;
16 import org.opendaylight.controller.sal.core.api.BrokerService;
17 import org.opendaylight.controller.sal.core.api.RpcImplementation;
18 import org.opendaylight.controller.sal.core.api.RpcRegistrationListener;
19 import org.opendaylight.yangtools.concepts.ListenerRegistration;
20 import org.opendaylight.yangtools.yang.common.QName;
21 import org.opendaylight.yangtools.yang.common.RpcResult;
22 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
24 public abstract class ForwardingProviderSession implements ProviderSession {
27 protected abstract ProviderSession delegate();
31 public RoutedRpcRegistration addMountedRpcImplementation(QName arg0, RpcImplementation arg1) {
32 return delegate().addMountedRpcImplementation(arg0, arg1);
37 public RoutedRpcRegistration addRoutedRpcImplementation(QName arg0, RpcImplementation arg1) {
38 return delegate().addRoutedRpcImplementation(arg0, arg1);
43 public RpcRegistration addRpcImplementation(QName arg0, RpcImplementation arg1)
44 throws IllegalArgumentException {
45 return delegate().addRpcImplementation(arg0, arg1);
50 public ListenerRegistration<RpcRegistrationListener> addRpcRegistrationListener(
51 RpcRegistrationListener arg0) {
52 return delegate().addRpcRegistrationListener(arg0);
61 public <T extends BrokerService> T getService(Class<T> arg0) {
62 return delegate().getService(arg0);
66 public Set<QName> getSupportedRpcs() {
67 return delegate().getSupportedRpcs();
71 public boolean isClosed() {
72 return delegate().isClosed();
76 public Future<RpcResult<CompositeNode>> rpc(QName arg0, CompositeNode arg1) {
77 return delegate().rpc(arg0, arg1);