@Beta @NonNullByDefault public final class ActionServiceAdapter extends Object implements ActionService
Modifier and Type | Method and Description |
---|---|
static ActionServiceAdapter |
create(BindingToNormalizedNodeCodec codec,
DOMActionService delegate)
Deprecated.
|
<O extends DataObject,T extends Action<?,?,?>> |
getActionHandle(Class<T> actionInterface,
Set<DataTreeIdentifier<O>> nodes)
Returns an implementation of a requested
Action . |
protected BindingToNormalizedNodeCodec |
getCodec() |
T |
getDelegate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActionHandle, getActionHandle, getActionHandle, getActionHandle
@Deprecated public static ActionServiceAdapter create(BindingToNormalizedNodeCodec codec, DOMActionService delegate)
public <O extends DataObject,T extends Action<?,?,?>> T getActionHandle(Class<T> actionInterface, Set<DataTreeIdentifier<O>> nodes)
ActionService
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.
getActionHandle
in interface ActionService
actionInterface
- Generated Action interfacenodes
- Set of nodes this service will be constrained to, empty if no constraints are knownpublic final T getDelegate()
getDelegate
in interface org.opendaylight.yangtools.concepts.Delegator<T>
protected final BindingToNormalizedNodeCodec getCodec()
Copyright © 2019 OpenDaylight. All rights reserved.