public interface DOMDataTreeReadCursor extends DOMDataTreeCursor
Modifier and Type | Method and Description |
---|---|
@NonNull FluentFuture<Boolean> |
exists(@NonNull YangInstanceIdentifier.PathArgument child)
Checks if data is available in the logical data store located at provided path.
|
@NonNull FluentFuture<Optional<NormalizedNode<?,?>>> |
readNode(@NonNull YangInstanceIdentifier.PathArgument child)
Read a particular node from the snapshot.
|
@NonNull FluentFuture<Optional<NormalizedNode<?,?>>> readNode(@NonNull YangInstanceIdentifier.PathArgument child)
child
- Child identifierReadFailedException
or an exception derived from ReadFailedException.IllegalArgumentException
- when specified path does not identify a valid child.@NonNull FluentFuture<Boolean> exists(@NonNull YangInstanceIdentifier.PathArgument child)
Note: a successful result from this method makes no guarantee that a subsequent call to
#readNode(PathArgument)
will succeed. It is possible that the data resides in a data store on a remote
node and, if that node goes down or a network failure occurs, a subsequent read would fail.
Another scenario is if the data is deleted in between the calls to exists
and
readNode
child
- Child identifierReadFailedException
or an exception derived from
ReadFailedException.Copyright © 2020 OpenDaylight. All rights reserved.