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
Constructors Modifier Constructor Description protectedAbstractDOMBrokerTransaction(Object identifier, Map<LogicalDatastoreType,? extends DOMStoreTransactionFactory> storeTxFactories)Creates new composite Transactions.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper)protected voidcloseSubtransactions()protected abstract TcreateTransaction(LogicalDatastoreType key)ObjectgetIdentifier()protected TgetSubtransaction(LogicalDatastoreType key)Returns subtransaction associated with supplied key.protected Collection<T>getSubtransactions()Returns immutable Iterable of all subtransactions.protected DOMStoreTransactionFactorygetTxFactory(LogicalDatastoreType type)StringtoString()
-
-
-
Constructor Detail
-
AbstractDOMBrokerTransaction
protected AbstractDOMBrokerTransaction(Object identifier, Map<LogicalDatastoreType,? extends DOMStoreTransactionFactory> storeTxFactories)
Creates new composite Transactions.- Parameters:
identifier- Identifier of transaction.
-
-
Method Detail
-
getSubtransaction
protected final T getSubtransaction(LogicalDatastoreType key)
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
protected abstract T createTransaction(LogicalDatastoreType key)
-
getSubtransactions
protected Collection<T> getSubtransactions()
Returns immutable Iterable of all subtransactions.
-
getIdentifier
public Object getIdentifier()
- Specified by:
getIdentifierin interfaceIdentifiable<T extends DOMStoreTransaction>
-
closeSubtransactions
protected void closeSubtransactions()
-
getTxFactory
protected DOMStoreTransactionFactory getTxFactory(LogicalDatastoreType type)
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
-
-