1 package org.opendaylight.controller.sal.core.api;
3 import org.opendaylight.controller.md.sal.common.api.routing.RouteChangePublisher;
4 import org.opendaylight.controller.sal.core.api.Broker.RoutedRpcRegistration;
5 import org.opendaylight.controller.sal.core.api.Broker.RpcRegistration;
6 import org.opendaylight.yangtools.concepts.ListenerRegistration;
7 import org.opendaylight.yangtools.yang.common.QName;
8 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
10 public interface RpcProvisionRegistry extends BrokerService, RouteChangePublisher<RpcRoutingContext, InstanceIdentifier> {
13 * Registers an implementation of the rpc.
16 * The registered rpc functionality will be available to all other
17 * consumers and providers registered to the broker, which are aware of
18 * the {@link QName} assigned to the rpc.
21 * There is no assumption that rpc type is in the set returned by
22 * invoking {@link RpcImplementation#getSupportedRpcs()}. This allows
23 * for dynamic rpc implementations.
27 * @param implementation
28 * Provider's Implementation of the RPC functionality
29 * @throws IllegalArgumentException
30 * If the name of RPC is invalid
32 RpcRegistration addRpcImplementation(QName rpcType, RpcImplementation implementation)
33 throws IllegalArgumentException;
35 ListenerRegistration<RpcRegistrationListener> addRpcRegistrationListener(RpcRegistrationListener listener);
37 RoutedRpcRegistration addRoutedRpcImplementation(QName rpcType, RpcImplementation implementation);