public class SfcGeniusSfReader extends Object
SfcGeniusReaderAbstract.doRead(LogicalDatastoreType, InstanceIdentifier)
Constructor and Description |
---|
SfcGeniusSfReader(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<String>> |
readInterfacesOfSf(SfName sfName)
Read the interface names configured as data plane locators of a
given service function.
|
CompletableFuture<List<SfName>> |
readSfOnInterface(String interfaceName)
Read the service function names that have the given interface configured
as a data plane locator.
|
public SfcGeniusSfReader(org.opendaylight.controller.md.sal.binding.api.ReadTransaction readTransaction, Executor executor)
readTransaction
- the read transaction.executor
- the callback executor.public CompletableFuture<List<SfName>> readSfOnInterface(String interfaceName)
interfaceName
- the interface name.public CompletableFuture<List<String>> readInterfacesOfSf(SfName sfName)
sfName
- the service function name.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.