public class SfcGeniusRspReader extends Object
SfcGeniusReaderAbstract.doRead(LogicalDatastoreType, InstanceIdentifier)
Constructor and Description |
---|
SfcGeniusRspReader(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<RenderedServicePath> |
readRsp(RspName rspName)
Read the rendered service path of the given name.
|
public SfcGeniusRspReader(org.opendaylight.controller.md.sal.binding.api.ReadTransaction readTransaction, Executor executor)
readTransaction
- the read transaction.executor
- the callback executor.public CompletableFuture<RenderedServicePath> readRsp(RspName rspName)
rspName
- the name of the rendered service path.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.