Class ForwardingDOMDataBroker
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.opendaylight.controller.md.sal.dom.spi.ForwardingDOMDataBroker
-
- All Implemented Interfaces:
AsyncDataBroker<YangInstanceIdentifier,NormalizedNode<?,?>>
,AsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
,TransactionChainFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
,DOMDataBroker
,DOMExtensibleService<DOMDataBroker,DOMDataBrokerExtension>
,DOMService
,DOMService
- Direct Known Subclasses:
PingPongDataBroker
@Deprecated(forRemoval=true) public abstract class ForwardingDOMDataBroker extends ForwardingObject implements DOMDataBroker
Deprecated, for removal: This API element is subject to removal in a future version.UseForwardingDOMDataBroker
instead.UtilityDOMDataBroker
implementation which forwards all interface method invocation to a delegate instance.
-
-
Constructor Summary
Constructors Constructor Description ForwardingDOMDataBroker()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DOMTransactionChain
createTransactionChain(TransactionChainListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Create a new transaction chain.protected abstract @NonNull DOMDataBroker
delegate()
Deprecated, for removal: This API element is subject to removal in a future version.Map<Class<? extends DOMDataBrokerExtension>,DOMDataBrokerExtension>
getSupportedExtensions()
Deprecated, for removal: This API element is subject to removal in a future version.Return a map of currently-supported extensions, along with accessor services which provide access to the specific functionality bound to this service.DOMDataReadOnlyTransaction
newReadOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Allocates a new read-only transaction which provides an immutable snapshot of the data tree.DOMDataReadWriteTransaction
newReadWriteTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Allocates new read-write transaction which provides a mutable view of the data tree.DOMDataWriteTransaction
newWriteOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Allocates new write-only transaction based on latest state of data tree.-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
-
-
-
Method Detail
-
delegate
protected abstract @NonNull DOMDataBroker delegate()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
delegate
in classForwardingObject
-
newReadOnlyTransaction
public DOMDataReadOnlyTransaction newReadOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncDataTransactionFactory
Allocates a new read-only transaction which provides an immutable snapshot of the data tree.The view of data tree is an immutable snapshot of current data tree state when transaction was allocated.
- Specified by:
newReadOnlyTransaction
in interfaceAsyncDataBroker<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newReadOnlyTransaction
in interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newReadOnlyTransaction
in interfaceDOMDataBroker
- Returns:
- new read-only transaction
-
newReadWriteTransaction
public DOMDataReadWriteTransaction newReadWriteTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncDataTransactionFactory
Allocates new read-write transaction which provides a mutable view of the data tree.Preconditions for mutation of data tree are captured from the snapshot of data tree state, when the transaction is allocated. If data was changed during transaction in an incompatible way then the commit of this transaction will fail. See
AsyncWriteTransaction.submit()
for more details about conflicting and not-conflicting changes and failure scenarios.- Specified by:
newReadWriteTransaction
in interfaceAsyncDataBroker<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newReadWriteTransaction
in interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newReadWriteTransaction
in interfaceDOMDataBroker
- Returns:
- new read-write transaction
-
newWriteOnlyTransaction
public DOMDataWriteTransaction newWriteOnlyTransaction()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncDataTransactionFactory
Allocates new write-only transaction based on latest state of data tree.Preconditions for mutation of data tree are captured from the snapshot of data tree state, when the transaction is allocated. If data was changed during transaction in an incompatible way then the commit of this transaction will fail. See
AsyncWriteTransaction.submit()
for more details about conflicting and not-conflicting changes and failure scenarios.Since this transaction does not provide a view of the data it SHOULD BE used only by callers which are exclusive writers (exporters of data) to the subtree they modify. This prevents optimistic lock failures as described in
AsyncWriteTransaction.submit()
.Exclusivity of writers to particular subtree SHOULD BE enforced by external locking mechanism.
- Specified by:
newWriteOnlyTransaction
in interfaceAsyncDataBroker<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newWriteOnlyTransaction
in interfaceAsyncDataTransactionFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
- Specified by:
newWriteOnlyTransaction
in interfaceDOMDataBroker
- Returns:
- new write-only transaction
-
createTransactionChain
public DOMTransactionChain createTransactionChain(TransactionChainListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TransactionChainFactory
Create a new transaction chain. The chain will be initialized to read from its backing datastore, with no outstanding transaction. Listener will be registered to handle chain-level events.- Specified by:
createTransactionChain
in interfaceDOMDataBroker
- Specified by:
createTransactionChain
in interfaceTransactionChainFactory<YangInstanceIdentifier,NormalizedNode<?,?>>
- Parameters:
listener
- Transaction chain event listener- Returns:
- A new transaction chain.
-
getSupportedExtensions
public Map<Class<? extends DOMDataBrokerExtension>,DOMDataBrokerExtension> getSupportedExtensions()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DOMExtensibleService
Return a map of currently-supported extensions, along with accessor services which provide access to the specific functionality bound to this service.- Specified by:
getSupportedExtensions
in interfaceDOMExtensibleService<DOMDataBroker,DOMDataBrokerExtension>
- Returns:
- A map of supported functionality.
-
-