
public interface DOMStore extends DOMStoreTransactionFactory
DOM Data Store provides transactional tree-like storage for YANG-modeled
entities described by YANG schema and represented by NormalizedNode.
Read and write access to stored data is provided only via transactions
created using DOMStoreTransactionFactory.newReadOnlyTransaction(),
DOMStoreTransactionFactory.newWriteOnlyTransaction() and DOMStoreTransactionFactory.newReadWriteTransaction(), or
by creating TransactionChain.
| Modifier and Type | Method and Description |
|---|---|
DOMStoreTransactionChain |
createTransactionChain()
Creates new transaction chain.
|
<L extends org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeListener<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>> |
registerChangeListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
L listener,
org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope scope)
Registers
DataChangeListener for Data Change callbacks which will
be triggered on the change of provided subpath. |
newReadOnlyTransaction, newReadWriteTransaction, newWriteOnlyTransaction<L extends org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeListener<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>> org.opendaylight.yangtools.concepts.ListenerRegistration<L> registerChangeListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
L listener,
org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope scope)
DataChangeListener for Data Change callbacks which will
be triggered on the change of provided subpath. What constitutes a change
depends on the @scope parameter.
Listener upon registration receives an initial callback
AsyncDataChangeListener.onDataChanged(org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeEvent)
which contains stable view of data tree at the time of registration.
@param path Path (subtree identifier) on which client listener will be
invoked.listener - Instance of listener which should be invoked onscope - Scope of change which triggers callback.DOMStoreTransactionChain createTransactionChain()
DOMStoreTransactionChain for more information.Copyright © 2014. All Rights Reserved.