public class SfcGeniusSfStateReader extends Object
SfcGeniusReaderAbstract.doRead(LogicalDatastoreType, InstanceIdentifier)| Constructor and Description |
|---|
SfcGeniusSfStateReader(org.opendaylight.controller.md.sal.binding.api.ReadTransaction readTransaction,
Executor executor)
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends org.opendaylight.yangtools.yang.binding.DataObject> |
doRead(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> instanceIdentifier)
Utility method to read a
DataObject from the data store. |
protected <T extends org.opendaylight.yangtools.yang.binding.DataObject> |
doReadOptional(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> instanceIdentifier)
Utility method to read a {#DataObject} from the data store.
|
CompletableFuture<List<SfpName>> |
readSfpNames(SfName sfName)
Read the service function path names associated to a service function.
|
public SfcGeniusSfStateReader(org.opendaylight.controller.md.sal.binding.api.ReadTransaction readTransaction,
Executor executor)
readTransaction - the read transaction.executor - the callback executor.public CompletableFuture<List<SfpName>> readSfpNames(SfName sfName)
sfName - the name of the service function.protected <T extends org.opendaylight.yangtools.yang.binding.DataObject> CompletableFuture<T> doRead(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> instanceIdentifier)
DataObject from the data store. If it
does not exist, the future will be completed exceptionally with a
SfcGeniusRuntimeException wrapping a
NoSuchElementException.T - the type of the object to read.logicalDatastoreType - the data store type to read from..instanceIdentifier - the instance identifier of the object to read.protected <T extends org.opendaylight.yangtools.yang.binding.DataObject> CompletableFuture<Optional<T>> doReadOptional(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> instanceIdentifier)
T - the type of the data object to read.logicalDatastoreType - to read from.instanceIdentifier - of the data object to read.Copyright © 2017 OpenDaylight. All rights reserved.