Class AbstractDOMBrokerTransaction<T extends DOMStoreTransaction>
java.lang.Object
org.opendaylight.controller.cluster.databroker.AbstractDOMBrokerTransaction<T>
- All Implemented Interfaces:
DOMDataTreeTransaction
,Identifiable<Object>
- Direct Known Subclasses:
AbstractDOMBrokerWriteTransaction
,DOMBrokerReadOnlyTransaction
public abstract class AbstractDOMBrokerTransaction<T extends DOMStoreTransaction>
extends Object
implements DOMDataTreeTransaction
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractDOMBrokerTransaction
(Object identifier, Map<LogicalDatastoreType, ? extends DOMStoreTransactionFactory> storeTxFactories) Creates new composite Transactions. -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelper
addToStringAttributes
(MoreObjects.ToStringHelper toStringHelper) protected void
protected abstract T
protected final T
Returns subtransaction associated with supplied key.protected Collection<T>
Returns immutable Iterable of all subtransactions.protected DOMStoreTransactionFactory
final String
toString()
-
Constructor Details
-
AbstractDOMBrokerTransaction
protected AbstractDOMBrokerTransaction(Object identifier, Map<LogicalDatastoreType, ? extends DOMStoreTransactionFactory> storeTxFactories) Creates new composite Transactions.- Parameters:
identifier
- Identifier of transaction.
-
-
Method Details
-
getSubtransaction
Returns subtransaction associated with supplied key.- Parameters:
key
- the data store type key- Returns:
- the subtransaction
- Throws:
NullPointerException
- if key is nullIllegalArgumentException
- if no subtransaction is associated with key.
-
createTransaction
-
getSubtransactions
Returns immutable Iterable of all subtransactions. -
getIdentifier
- Specified by:
getIdentifier
in interfaceIdentifiable<T extends DOMStoreTransaction>
-
closeSubtransactions
protected void closeSubtransactions() -
getTxFactory
-
toString
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
-