Class ForwardingDOMRpcService
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.opendaylight.controller.md.sal.dom.spi.ForwardingDOMRpcService
-
- All Implemented Interfaces:
DOMRpcService
,DOMService
,DOMService
@Deprecated(forRemoval=true) public abstract class ForwardingDOMRpcService extends ForwardingObject implements DOMRpcService
Deprecated, for removal: This API element is subject to removal in a future version.UseForwardingDOMRpcService
instead.UtilityDOMRpcService
which forwards all requests to a backing delegate instance.
-
-
Constructor Summary
Constructors Constructor Description ForwardingDOMRpcService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract @NonNull DOMRpcService
delegate()
Deprecated, for removal: This API element is subject to removal in a future version.CheckedFuture<DOMRpcResult,DOMRpcException>
invokeRpc(SchemaPath type, NormalizedNode<?,?> input)
Deprecated, for removal: This API element is subject to removal in a future version.Initiate invocation of an RPC.<T extends DOMRpcAvailabilityListener>
ListenerRegistration<T>registerRpcListener(T listener)
Deprecated, for removal: This API element is subject to removal in a future version.Register aDOMRpcAvailabilityListener
with this service to receive notifications about RPC implementations becoming (un)available.-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
-
-
-
Method Detail
-
delegate
protected abstract @NonNull DOMRpcService delegate()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
delegate
in classForwardingObject
-
invokeRpc
public CheckedFuture<DOMRpcResult,DOMRpcException> invokeRpc(SchemaPath type, NormalizedNode<?,?> input)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DOMRpcService
Initiate invocation of an RPC. This method is guaranteed to not block on any external resources.- Specified by:
invokeRpc
in interfaceDOMRpcService
- Parameters:
type
- SchemaPath of the RPC to be invokedinput
- Input arguments, null if the RPC does not take any.- Returns:
- A
CheckedFuture
which will return either a result structure, or report a subclass ofDOMRpcException
reporting a transport error.
-
registerRpcListener
public <T extends DOMRpcAvailabilityListener> ListenerRegistration<T> registerRpcListener(T listener)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DOMRpcService
Register aDOMRpcAvailabilityListener
with this service to receive notifications about RPC implementations becoming (un)available. The listener will be invoked with the current implementations reported and will be kept uptodate as implementations come and go.Users should note that using a listener does not necessarily mean that
DOMRpcService.invokeRpc(SchemaPath, NormalizedNode)
will not report a failure due toDOMRpcImplementationNotAvailableException
and need to be ready to handle it.Implementations of this interface are encouraged to take reasonable precautions to prevent this scenario from occurring.
- Specified by:
registerRpcListener
in interfaceDOMRpcService
- Parameters:
listener
-DOMRpcAvailabilityListener
instance to register- Returns:
- A
ListenerRegistration
representing this registration. Performing aListenerRegistration.close()
will cancel it. Returned object is guaranteed to be non-null.
-
-