| Package | Description |
|---|---|
| org.onosproject.store.consistent.impl |
Implementation of partitioned and distributed store facility capable of
providing consistent update semantics.
|
| Modifier and Type | Method and Description |
|---|---|
Result<Void> |
DefaultDatabaseState.clear(String tableName) |
Result<Void> |
DatabaseState.clear(String tableName) |
static <V> Result<V> |
Result.locked()
Creates a new Result instance with status set to Status.LOCKED.
|
static <V> Result<V> |
Result.ok(V value)
Creates a new Result instance with the specified value with status set to Status.OK.
|
Result<org.onosproject.store.service.Versioned<V>> |
DatabaseState.put(String tableName,
K key,
V value) |
Result<org.onosproject.store.service.Versioned<byte[]>> |
DefaultDatabaseState.put(String tableName,
String key,
byte[] value) |
Result<UpdateResult<org.onosproject.store.service.Versioned<V>>> |
DatabaseState.putAndGet(String tableName,
K key,
V value) |
Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>> |
DefaultDatabaseState.putAndGet(String tableName,
String key,
byte[] value) |
Result<org.onosproject.store.service.Versioned<V>> |
DatabaseState.putIfAbsent(String tableName,
K key,
V value) |
Result<org.onosproject.store.service.Versioned<byte[]>> |
DefaultDatabaseState.putIfAbsent(String tableName,
String key,
byte[] value) |
Result<UpdateResult<org.onosproject.store.service.Versioned<V>>> |
DatabaseState.putIfAbsentAndGet(String tableName,
K key,
V value) |
Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>> |
DefaultDatabaseState.putIfAbsentAndGet(String tableName,
String key,
byte[] value) |
Result<org.onosproject.store.service.Versioned<V>> |
DatabaseState.remove(String tableName,
K key) |
Result<Boolean> |
DatabaseState.remove(String tableName,
K key,
long version) |
Result<Boolean> |
DatabaseState.remove(String tableName,
K key,
V value) |
Result<org.onosproject.store.service.Versioned<byte[]>> |
DefaultDatabaseState.remove(String tableName,
String key) |
Result<Boolean> |
DefaultDatabaseState.remove(String tableName,
String key,
byte[] value) |
Result<Boolean> |
DefaultDatabaseState.remove(String tableName,
String key,
long version) |
Result<Boolean> |
DatabaseState.replace(String tableName,
K key,
long oldVersion,
V newValue) |
Result<Boolean> |
DatabaseState.replace(String tableName,
K key,
V oldValue,
V newValue) |
Result<Boolean> |
DefaultDatabaseState.replace(String tableName,
String key,
byte[] oldValue,
byte[] newValue) |
Result<Boolean> |
DefaultDatabaseState.replace(String tableName,
String key,
long oldVersion,
byte[] newValue) |
Result<UpdateResult<org.onosproject.store.service.Versioned<V>>> |
DatabaseState.replaceAndGet(String tableName,
K key,
long oldVersion,
V newValue) |
Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>> |
DefaultDatabaseState.replaceAndGet(String tableName,
String key,
long oldVersion,
byte[] newValue) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Result<Void>> |
PartitionedDatabase.clear(String tableName) |
CompletableFuture<Result<Void>> |
DefaultDatabase.clear(String tableName) |
CompletableFuture<Result<Void>> |
DatabaseProxy.clear(String tableName)
Clears the table.
|
CompletableFuture<Result<org.onosproject.store.service.Versioned<V>>> |
DatabaseProxy.put(String tableName,
K key,
V value)
Puts a value in the table.
|
CompletableFuture<Result<org.onosproject.store.service.Versioned<byte[]>>> |
PartitionedDatabase.put(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<org.onosproject.store.service.Versioned<byte[]>>> |
DefaultDatabase.put(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<V>>>> |
DatabaseProxy.putAndGet(String tableName,
K key,
V value)
Puts a value in the table.
|
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>>> |
PartitionedDatabase.putAndGet(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>>> |
DefaultDatabase.putAndGet(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<org.onosproject.store.service.Versioned<V>>> |
DatabaseProxy.putIfAbsent(String tableName,
K key,
V value)
Puts a value in the table if the given key does not exist.
|
CompletableFuture<Result<org.onosproject.store.service.Versioned<byte[]>>> |
PartitionedDatabase.putIfAbsent(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<org.onosproject.store.service.Versioned<byte[]>>> |
DefaultDatabase.putIfAbsent(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<V>>>> |
DatabaseProxy.putIfAbsentAndGet(String tableName,
K key,
V value)
Puts a value in the table.
|
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>>> |
PartitionedDatabase.putIfAbsentAndGet(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>>> |
DefaultDatabase.putIfAbsentAndGet(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<org.onosproject.store.service.Versioned<V>>> |
DatabaseProxy.remove(String tableName,
K key)
Removes a value from the table.
|
CompletableFuture<Result<Boolean>> |
DatabaseProxy.remove(String tableName,
K key,
long version)
Removes a key and if the existing version for that key matches the specified version.
|
CompletableFuture<Result<Boolean>> |
DatabaseProxy.remove(String tableName,
K key,
V value)
Removes a key and if the existing value for that key matches the specified value.
|
CompletableFuture<Result<org.onosproject.store.service.Versioned<byte[]>>> |
PartitionedDatabase.remove(String tableName,
String key) |
CompletableFuture<Result<org.onosproject.store.service.Versioned<byte[]>>> |
DefaultDatabase.remove(String tableName,
String key) |
CompletableFuture<Result<Boolean>> |
PartitionedDatabase.remove(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<Boolean>> |
DefaultDatabase.remove(String tableName,
String key,
byte[] value) |
CompletableFuture<Result<Boolean>> |
PartitionedDatabase.remove(String tableName,
String key,
long version) |
CompletableFuture<Result<Boolean>> |
DefaultDatabase.remove(String tableName,
String key,
long version) |
CompletableFuture<Result<Boolean>> |
DatabaseProxy.replace(String tableName,
K key,
long oldVersion,
V newValue)
Replaces the entry for the specified key only if currently mapped to the specified version.
|
CompletableFuture<Result<Boolean>> |
DatabaseProxy.replace(String tableName,
K key,
V oldValue,
V newValue)
Replaces the entry for the specified key only if currently mapped to the specified value.
|
CompletableFuture<Result<Boolean>> |
PartitionedDatabase.replace(String tableName,
String key,
byte[] oldValue,
byte[] newValue) |
CompletableFuture<Result<Boolean>> |
DefaultDatabase.replace(String tableName,
String key,
byte[] oldValue,
byte[] newValue) |
CompletableFuture<Result<Boolean>> |
PartitionedDatabase.replace(String tableName,
String key,
long oldVersion,
byte[] newValue) |
CompletableFuture<Result<Boolean>> |
DefaultDatabase.replace(String tableName,
String key,
long oldVersion,
byte[] newValue) |
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<V>>>> |
DatabaseProxy.replaceAndGet(String tableName,
K key,
long oldVersion,
V newValue)
Replaces the entry for the specified key only if currently mapped to the specified version.
|
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>>> |
PartitionedDatabase.replaceAndGet(String tableName,
String key,
long oldVersion,
byte[] newValue) |
CompletableFuture<Result<UpdateResult<org.onosproject.store.service.Versioned<byte[]>>>> |
DefaultDatabase.replaceAndGet(String tableName,
String key,
long oldVersion,
byte[] newValue) |
Copyright © 2015. All rights reserved.