Class AtomixDocumentTree<V>
- java.lang.Object
-
- org.onosproject.store.atomix.primitives.impl.AtomixDocumentTree<V>
-
- All Implemented Interfaces:
org.onosproject.store.service.AsyncDocumentTree<V>,org.onosproject.store.service.DistributedPrimitive,org.onosproject.store.service.Transactional<org.onosproject.store.primitives.NodeUpdate<V>>
public class AtomixDocumentTree<V> extends Object implements org.onosproject.store.service.AsyncDocumentTree<V>
Atomix document tree.
-
-
Constructor Summary
Constructors Constructor Description AtomixDocumentTree(io.atomix.core.tree.AsyncAtomicDocumentTree<V> atomixTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>addListener(org.onosproject.store.service.DocumentPath path, org.onosproject.store.service.DocumentTreeListener<V> listener)CompletableFuture<org.onosproject.store.service.Version>begin(org.onosproject.store.primitives.TransactionId transactionId)CompletableFuture<Void>commit(org.onosproject.store.primitives.TransactionId transactionId)CompletableFuture<Boolean>create(org.onosproject.store.service.DocumentPath path, V value)CompletableFuture<Boolean>createRecursive(org.onosproject.store.service.DocumentPath path, V value)CompletableFuture<Void>destroy()CompletableFuture<org.onosproject.store.service.Versioned<V>>get(org.onosproject.store.service.DocumentPath path)CompletableFuture<Map<String,org.onosproject.store.service.Versioned<V>>>getChildren(org.onosproject.store.service.DocumentPath path)Stringname()CompletableFuture<Boolean>prepare(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.NodeUpdate<V>> transactionLog)CompletableFuture<Boolean>prepareAndCommit(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.NodeUpdate<V>> transactionLog)CompletableFuture<Void>removeListener(org.onosproject.store.service.DocumentTreeListener<V> listener)CompletableFuture<org.onosproject.store.service.Versioned<V>>removeNode(org.onosproject.store.service.DocumentPath path)CompletableFuture<Boolean>replace(org.onosproject.store.service.DocumentPath path, V newValue, long version)CompletableFuture<Boolean>replace(org.onosproject.store.service.DocumentPath path, V newValue, V currentValue)CompletableFuture<Void>rollback(org.onosproject.store.primitives.TransactionId transactionId)org.onosproject.store.service.DocumentPathroot()CompletableFuture<org.onosproject.store.service.Versioned<V>>set(org.onosproject.store.service.DocumentPath path, V value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AtomixDocumentTree
public AtomixDocumentTree(io.atomix.core.tree.AsyncAtomicDocumentTree<V> atomixTree)
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceorg.onosproject.store.service.DistributedPrimitive
-
root
public org.onosproject.store.service.DocumentPath root()
- Specified by:
rootin interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
getChildren
public CompletableFuture<Map<String,org.onosproject.store.service.Versioned<V>>> getChildren(org.onosproject.store.service.DocumentPath path)
- Specified by:
getChildrenin interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
get
public CompletableFuture<org.onosproject.store.service.Versioned<V>> get(org.onosproject.store.service.DocumentPath path)
- Specified by:
getin interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
set
public CompletableFuture<org.onosproject.store.service.Versioned<V>> set(org.onosproject.store.service.DocumentPath path, V value)
- Specified by:
setin interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
create
public CompletableFuture<Boolean> create(org.onosproject.store.service.DocumentPath path, V value)
- Specified by:
createin interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
createRecursive
public CompletableFuture<Boolean> createRecursive(org.onosproject.store.service.DocumentPath path, V value)
- Specified by:
createRecursivein interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
replace
public CompletableFuture<Boolean> replace(org.onosproject.store.service.DocumentPath path, V newValue, long version)
- Specified by:
replacein interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
replace
public CompletableFuture<Boolean> replace(org.onosproject.store.service.DocumentPath path, V newValue, V currentValue)
- Specified by:
replacein interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
removeNode
public CompletableFuture<org.onosproject.store.service.Versioned<V>> removeNode(org.onosproject.store.service.DocumentPath path)
- Specified by:
removeNodein interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
addListener
public CompletableFuture<Void> addListener(org.onosproject.store.service.DocumentPath path, org.onosproject.store.service.DocumentTreeListener<V> listener)
- Specified by:
addListenerin interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
removeListener
public CompletableFuture<Void> removeListener(org.onosproject.store.service.DocumentTreeListener<V> listener)
- Specified by:
removeListenerin interfaceorg.onosproject.store.service.AsyncDocumentTree<V>
-
begin
public CompletableFuture<org.onosproject.store.service.Version> begin(org.onosproject.store.primitives.TransactionId transactionId)
- Specified by:
beginin interfaceorg.onosproject.store.service.Transactional<V>
-
prepare
public CompletableFuture<Boolean> prepare(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.NodeUpdate<V>> transactionLog)
- Specified by:
preparein interfaceorg.onosproject.store.service.Transactional<V>
-
prepareAndCommit
public CompletableFuture<Boolean> prepareAndCommit(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.NodeUpdate<V>> transactionLog)
- Specified by:
prepareAndCommitin interfaceorg.onosproject.store.service.Transactional<V>
-
commit
public CompletableFuture<Void> commit(org.onosproject.store.primitives.TransactionId transactionId)
- Specified by:
commitin interfaceorg.onosproject.store.service.Transactional<V>
-
rollback
public CompletableFuture<Void> rollback(org.onosproject.store.primitives.TransactionId transactionId)
- Specified by:
rollbackin interfaceorg.onosproject.store.service.Transactional<V>
-
destroy
public CompletableFuture<Void> destroy()
- Specified by:
destroyin interfaceorg.onosproject.store.service.DistributedPrimitive
-
-