public interface DOMDataTreeReadCursor extends DOMDataTreeCursor
Modifier and Type | Method and Description |
---|---|
@NonNull com.google.common.util.concurrent.FluentFuture<Boolean> |
exists(@NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
Checks if data is available in the logical data store located at provided path.
|
@NonNull com.google.common.util.concurrent.FluentFuture<Optional<org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>> |
readNode(@NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
Read a particular node from the snapshot.
|
@NonNull com.google.common.util.concurrent.FluentFuture<Optional<org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>> readNode(@NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
child
- Child identifierReadFailedException
or an exception derived from ReadFailedException.IllegalArgumentException
- when specified path does not identify a valid child.@NonNull com.google.common.util.concurrent.FluentFuture<Boolean> exists(@NonNull org.opendaylight.yangtools.yang.data.api.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 © 2019 OpenDaylight. All rights reserved.