public interface ReadOperations
ReadTransaction and ReadWriteTransaction. This interface defines
the operations without a tie-in with lifecycle management.| Modifier and Type | Method and Description |
|---|---|
default @NonNull com.google.common.util.concurrent.FluentFuture<Boolean> |
exists(@NonNull LogicalDatastoreType store,
@NonNull InstanceIdentifier<?> path)
Determines if data data exists in the provided logical data store located at the provided path.
|
<T extends DataObject> |
read(@NonNull LogicalDatastoreType store,
@NonNull InstanceIdentifier<T> path)
Reads data from the provided logical data store located at the provided path.
|
<T extends DataObject> @NonNull com.google.common.util.concurrent.FluentFuture<Optional<T>> read(@NonNull LogicalDatastoreType store, @NonNull InstanceIdentifier<T> path)
If the target is a subtree, then the whole subtree is read (and will be accessible from the returned data object).
store - Logical data store from which read should occur.path - Path which uniquely identifies subtree which client want to readReadFailedException or
an exception derived from ReadFailedException.NullPointerException - if any of the arguments is nullIllegalArgumentException - if the path is InstanceIdentifier.isWildcarded()default @NonNull com.google.common.util.concurrent.FluentFuture<Boolean> exists(@NonNull LogicalDatastoreType store, @NonNull InstanceIdentifier<?> path)
Default implementation just delegates to read(LogicalDatastoreType, InstanceIdentifier). Implementations
are recommended to override with a more efficient implementation.
store - Logical data store from which read should occur.path - Path which uniquely identifies subtree which client want to readBoolean.TRUE.
Boolean.FALSE.ReadFailedException or an exception derived
from ReadFailedException.NullPointerException - if any of the arguments is nullIllegalArgumentException - if the path is InstanceIdentifier.isWildcarded() and the implementation
does not support evaluating wildcards.Copyright © 2019 OpenDaylight. All rights reserved.