@Beta @NonNullByDefault public interface ActionService extends BindingService
action
implementations. Each action is defined in a YANG model,
and implementations are added dynamically at runtime, via ActionProviderService
.Modifier and Type | Method and Description |
---|---|
default <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> |
getActionHandle(Class<T> actionInterface) |
default <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> |
getActionHandle(Class<T> actionInterface,
DataTreeIdentifier<O>... nodes) |
default <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> |
getActionHandle(Class<T> actionInterface,
LogicalDatastoreType dataStore,
P path) |
default <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> |
getActionHandle(Class<T> actionInterface,
P path) |
<O extends DataObject,T extends Action<?,?,?>> |
getActionHandle(Class<T> actionInterface,
Set<DataTreeIdentifier<O>> validNodes)
Returns an implementation of a requested
Action . |
<O extends DataObject,T extends Action<?,?,?>> T getActionHandle(Class<T> actionInterface, Set<DataTreeIdentifier<O>> validNodes)
Action
. Returned instance is not an actual implementation
of the Action service interface, but a proxy implementation of the interface that forwards to an actual
implementation, if any.
The following describes the behavior of the proxy when invoking
Action.invoke(InstanceIdentifier, RpcInput)
:
IllegalStateException
.IllegalArgumentException
is thrown.
The returned proxy is automatically updated with the most recent registered implementation, hence there is no guarantee that multiple consecutive invocations will be handled by the same implementation.
actionInterface
- Generated Action interfacevalidNodes
- Set of nodes this service will be constrained to, empty if no constraints are knownNullPointerException
- if actionInterface
is nullIllegalArgumentException
- when actionInterface
does not conform to the Binding Specificationdefault <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> T getActionHandle(Class<T> actionInterface)
default <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> T getActionHandle(Class<T> actionInterface, LogicalDatastoreType dataStore, P path)
default <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> T getActionHandle(Class<T> actionInterface, P path)
default <O extends DataObject,P extends InstanceIdentifier<O>,T extends Action<P,?,?>> T getActionHandle(Class<T> actionInterface, DataTreeIdentifier<O>... nodes)
Copyright © 2019 OpenDaylight. All rights reserved.