|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Versioned in org.sdnplatform.sync |
---|
Methods in org.sdnplatform.sync that return Versioned | ||
---|---|---|
Versioned<T> |
Versioned.cloneVersioned()
Create a clone of this Versioned object such that the object pointed to is the same, but the VectorClock and Versioned wrapper is a shallow copy. |
|
static
|
Versioned.emptyVersioned()
|
|
Versioned<V> |
IStoreClient.get(K key)
Get the versioned value associated with the given key. |
|
Versioned<V> |
IStoreClient.get(K key,
Versioned<V> defaultValue)
Get the versioned value associated with the given key or the defaultValue if no value is associated with the key. |
|
static
|
Versioned.value(S s)
|
|
static
|
Versioned.value(S s,
IVersion v)
|
Methods in org.sdnplatform.sync that return types with arguments of type Versioned | |
---|---|
IClosableIterator<java.util.Map.Entry<K,Versioned<V>>> |
IStoreClient.entries()
Get an iterator that will get all the entries in the store. |
Methods in org.sdnplatform.sync with parameters of type Versioned | |
---|---|
int |
Versioned.HappenedBeforeComparator.compare(Versioned<S> v1,
Versioned<S> v2)
|
int |
Versioned.HappenedBeforeComparator.compare(Versioned<S> v1,
Versioned<S> v2)
|
Versioned<V> |
IStoreClient.get(K key,
Versioned<V> defaultValue)
Get the versioned value associated with the given key or the defaultValue if no value is associated with the key. |
IVersion |
IStoreClient.put(K key,
Versioned<V> versioned)
Put the given Versioned value into the store for the given key if the version is greater to or concurrent with existing values. |
boolean |
IStoreClient.putIfNotObsolete(K key,
Versioned<V> versioned)
Put the versioned value to the key, ignoring any ObsoleteVersionException that may be thrown |
Method parameters in org.sdnplatform.sync with type arguments of type Versioned | ||
---|---|---|
|
ISyncService.getStoreClient(java.lang.String storeName,
java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass,
IInconsistencyResolver<Versioned<V>> resolver)
Get a store client that will use the provided inconsistency resolver to resolve concurrent updates. |
|
|
ISyncService.getStoreClient(java.lang.String storeName,
com.fasterxml.jackson.core.type.TypeReference<K> keyType,
com.fasterxml.jackson.core.type.TypeReference<V> valueType,
IInconsistencyResolver<Versioned<V>> resolver)
Get a store client that will use the provided inconsistency resolver to resolve concurrent updates. |
Uses of Versioned in org.sdnplatform.sync.client |
---|
Methods in org.sdnplatform.sync.client with parameters of type Versioned | |
---|---|
protected void |
SyncClient.EntriesCommand.display(com.fasterxml.jackson.databind.JsonNode keyNode,
Versioned<com.fasterxml.jackson.databind.JsonNode> value)
|
protected void |
SyncClient.GetCommand.display(Versioned<com.fasterxml.jackson.databind.JsonNode> value)
|
protected void |
SyncClient.GetFullCommand.display(Versioned<com.fasterxml.jackson.databind.JsonNode> value)
|
Uses of Versioned in org.sdnplatform.sync.internal |
---|
Methods in org.sdnplatform.sync.internal that return Versioned | |
---|---|
protected Versioned<V> |
DefaultStoreClient.defaultValue(Versioned<V> defaultValue)
|
Versioned<V> |
AbstractStoreClient.get(K key)
|
Versioned<V> |
DefaultStoreClient.get(K key,
Versioned<V> defaultValue)
|
protected Versioned<V> |
DefaultStoreClient.getItemOrThrow(K key,
Versioned<V> defaultValue,
java.util.List<Versioned<V>> items)
|
protected Versioned<V> |
DefaultStoreClient.handleGet(K key,
Versioned<V> defaultValue,
java.util.List<Versioned<V>> raw)
|
Methods in org.sdnplatform.sync.internal that return types with arguments of type Versioned | |
---|---|
IClosableIterator<java.util.Map.Entry<K,Versioned<V>>> |
DefaultStoreClient.entries()
|
java.util.List<Versioned<byte[]>> |
StoreRegistry.Hint.getValues()
|
java.util.Map.Entry<K,Versioned<V>> |
DefaultStoreClient.StoreClientIterator.next()
|
java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>> |
Cursor.next()
|
Methods in org.sdnplatform.sync.internal with parameters of type Versioned | |
---|---|
protected Versioned<V> |
DefaultStoreClient.defaultValue(Versioned<V> defaultValue)
|
Versioned<V> |
DefaultStoreClient.get(K key,
Versioned<V> defaultValue)
|
protected Versioned<V> |
DefaultStoreClient.getItemOrThrow(K key,
Versioned<V> defaultValue,
java.util.List<Versioned<V>> items)
|
protected Versioned<V> |
DefaultStoreClient.handleGet(K key,
Versioned<V> defaultValue,
java.util.List<Versioned<V>> raw)
|
IVersion |
DefaultStoreClient.put(K key,
Versioned<V> versioned)
|
boolean |
AbstractStoreClient.putIfNotObsolete(K key,
Versioned<V> versioned)
|
void |
StoreRegistry.queueHint(java.lang.String storeName,
ByteArray key,
Versioned<byte[]> value)
Add a key/value to the hint store for the given store |
void |
SyncManager.queueSyncTask(SynchronizingStorageEngine e,
ByteArray key,
Versioned<byte[]> value)
Queue a synchronization of the specified KeyedValues to all nodes
assocatiated with the storage engine specified |
Method parameters in org.sdnplatform.sync.internal with type arguments of type Versioned | ||
---|---|---|
protected Versioned<V> |
DefaultStoreClient.getItemOrThrow(K key,
Versioned<V> defaultValue,
java.util.List<Versioned<V>> items)
|
|
|
AbstractSyncManager.getStoreClient(java.lang.String storeName,
java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass,
IInconsistencyResolver<Versioned<V>> resolver)
|
|
|
AbstractSyncManager.getStoreClient(java.lang.String storeName,
java.lang.Class<K> keyClass,
com.fasterxml.jackson.core.type.TypeReference<K> keyType,
java.lang.Class<V> valueClass,
com.fasterxml.jackson.core.type.TypeReference<V> valueType,
IInconsistencyResolver<Versioned<V>> resolver)
The "real" version of getStoreClient that will be called by all the others |
|
|
AbstractSyncManager.getStoreClient(java.lang.String storeName,
com.fasterxml.jackson.core.type.TypeReference<K> keyType,
com.fasterxml.jackson.core.type.TypeReference<V> valueType,
IInconsistencyResolver<Versioned<V>> resolver)
|
|
protected Versioned<V> |
DefaultStoreClient.handleGet(K key,
Versioned<V> defaultValue,
java.util.List<Versioned<V>> raw)
|
|
void |
SyncManager.writeSyncValue(java.lang.String storeName,
ISyncService.Scope scope,
boolean persist,
byte[] key,
java.lang.Iterable<Versioned<byte[]>> values)
Write a value synchronized from another node, bypassing some of the usual logic when a client writes data. |
Constructor parameters in org.sdnplatform.sync.internal with type arguments of type Versioned | |
---|---|
Cursor(int cursorId,
IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> delegate)
|
|
DefaultStoreClient.StoreClientIterator(IClosableIterator<java.util.Map.Entry<K,java.util.List<Versioned<V>>>> delegate)
|
|
DefaultStoreClient(IStore<K,V> delegate,
IInconsistencyResolver<Versioned<V>> resolver,
AbstractSyncManager syncManager,
java.lang.Class<K> keyClass,
com.fasterxml.jackson.core.type.TypeReference<K> keyType)
|
|
StoreRegistry.Hint(StoreRegistry.HintKey hintKey,
java.util.List<Versioned<byte[]>> values)
|
Uses of Versioned in org.sdnplatform.sync.internal.remote |
---|
Methods in org.sdnplatform.sync.internal.remote that return types with arguments of type Versioned | |
---|---|
IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> |
RemoteStore.entries()
|
java.util.List<Versioned<byte[]>> |
RemoteStore.get(ByteArray key)
|
java.util.List<Versioned<byte[]>> |
SyncReply.getValues()
|
Methods in org.sdnplatform.sync.internal.remote with parameters of type Versioned | |
---|---|
void |
RemoteStore.put(ByteArray key,
Versioned<byte[]> value)
|
Constructor parameters in org.sdnplatform.sync.internal.remote with type arguments of type Versioned | |
---|---|
SyncReply(java.util.List<Versioned<byte[]>> values,
java.util.List<KeyedValues> keyedValues,
boolean success,
SyncException error,
int intValue)
|
Uses of Versioned in org.sdnplatform.sync.internal.rpc |
---|
Methods in org.sdnplatform.sync.internal.rpc that return Versioned | |
---|---|
static Versioned<byte[]> |
TProtocolUtil.getVersionedValued(VersionedValue tvv)
Convert a thrift VersionedValue into a Versioned . |
Methods in org.sdnplatform.sync.internal.rpc that return types with arguments of type Versioned | |
---|---|
static java.util.List<Versioned<byte[]>> |
TProtocolUtil.getVersionedList(java.util.List<VersionedValue> tvv)
Convert from a list of VersionedValue to a list
of Versioned |
java.util.Iterator<Versioned<byte[]>> |
TVersionedValueIterable.iterator()
|
Methods in org.sdnplatform.sync.internal.rpc with parameters of type Versioned | |
---|---|
static KeyedValues |
TProtocolUtil.getTKeyedValues(ByteArray key,
Versioned<byte[]>... value)
Construct a thrift org.sdnplatform.sync.thrift.KeyedValues |
static org.sdnplatform.sync.thrift.VersionedValue |
TProtocolUtil.getTVersionedValue(Versioned<byte[]> value)
Allocate a thrift org.sdnplatform.sync.thrift.VersionedValue
object wrapping a Versioned object |
Method parameters in org.sdnplatform.sync.internal.rpc with type arguments of type Versioned | |
---|---|
static KeyedValues |
TProtocolUtil.getTKeyedValues(ByteArray key,
java.lang.Iterable<Versioned<byte[]>> values)
Construct a thrift org.sdnplatform.sync.thrift.KeyedValues |
static KeyedVersions |
TProtocolUtil.getTKeyedVersions(ByteArray key,
java.util.List<Versioned<byte[]>> values)
Construct a thrift org.sdnplatform.sync.thrift.KeyedValues |
Uses of Versioned in org.sdnplatform.sync.internal.store |
---|
Subclasses of Versioned in org.sdnplatform.sync.internal.store | |
---|---|
class |
VCVersioned<T>
|
Methods in org.sdnplatform.sync.internal.store that return types with arguments of type Versioned | ||
---|---|---|
IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> |
ListenerStorageEngine.entries()
|
|
IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> |
JavaDBStorageEngine.entries()
|
|
IClosableIterator<java.util.Map.Entry<K,java.util.List<Versioned<V>>>> |
JacksonStore.entries()
|
|
IClosableIterator<java.util.Map.Entry<K,java.util.List<Versioned<V>>>> |
InMemoryStorageEngine.entries()
|
|
IClosableIterator<java.util.Map.Entry<K,java.util.List<Versioned<V>>>> |
IStore.entries()
Get an iterator over pairs of entries in the store. |
|
IClosableIterator<java.util.Map.Entry<K,java.util.List<Versioned<V>>>> |
IStorageEngine.entries()
Get an iterator over pairs of entries in the store. |
|
java.util.List<Versioned<byte[]>> |
ListenerStorageEngine.get(ByteArray key)
|
|
java.util.List<Versioned<byte[]>> |
JavaDBStorageEngine.get(ByteArray key)
|
|
java.util.List<Versioned<V>> |
JacksonStore.get(K key)
|
|
java.util.List<Versioned<V>> |
InMemoryStorageEngine.get(K key)
|
|
java.util.List<Versioned<V>> |
IStore.get(K key)
Get the value associated with the given key |
|
static
|
StoreUtils.getAll(IStore<K,V> storageEngine,
java.lang.Iterable<K> keys)
Implements getAll by delegating to get. |
|
java.util.List<Versioned<V>> |
InMemoryStorageEngine.remove(K key)
Atomically remove the key and return the value that was mapped to it, if any |
Methods in org.sdnplatform.sync.internal.store with parameters of type Versioned | |
---|---|
boolean |
InMemoryStorageEngine.doput(K key,
Versioned<V> value)
|
void |
SynchronizingStorageEngine.put(ByteArray key,
Versioned<byte[]> value)
|
void |
ListenerStorageEngine.put(ByteArray key,
Versioned<byte[]> value)
|
void |
JavaDBStorageEngine.put(ByteArray key,
Versioned<byte[]> value)
|
void |
JacksonStore.put(K key,
Versioned<V> value)
|
void |
InMemoryStorageEngine.put(K key,
Versioned<V> value)
|
void |
IStore.put(K key,
Versioned<V> value)
Associate the value with the key and version in this store |
Method parameters in org.sdnplatform.sync.internal.store with type arguments of type Versioned | ||
---|---|---|
static
|
StoreUtils.canDelete(java.util.List<Versioned<V>> items,
long tombstoneDeletion)
|
|
static
|
StoreUtils.getVersions(java.util.List<Versioned<V>> versioneds)
|
|
boolean |
ListenerStorageEngine.writeSyncValue(ByteArray key,
java.lang.Iterable<Versioned<byte[]>> values)
|
|
boolean |
JavaDBStorageEngine.writeSyncValue(ByteArray key,
java.lang.Iterable<Versioned<byte[]>> values)
|
|
boolean |
InMemoryStorageEngine.writeSyncValue(K key,
java.lang.Iterable<Versioned<V>> values)
|
|
boolean |
IStorageEngine.writeSyncValue(K key,
java.lang.Iterable<Versioned<V>> values)
Write the given versioned values into the given key. |
Constructor parameters in org.sdnplatform.sync.internal.store with type arguments of type Versioned | |
---|---|
InMemoryStorageEngine(java.lang.String name,
java.util.concurrent.ConcurrentMap<K,java.util.List<Versioned<V>>> map)
|
Uses of Versioned in org.sdnplatform.sync.internal.version |
---|
Methods in org.sdnplatform.sync.internal.version that return types with arguments of type Versioned | |
---|---|
java.util.List<Versioned<T>> |
VectorClockInconsistencyResolver.resolveConflicts(java.util.List<Versioned<T>> items)
|
java.util.List<Versioned<T>> |
TimeBasedInconsistencyResolver.resolveConflicts(java.util.List<Versioned<T>> items)
|
Method parameters in org.sdnplatform.sync.internal.version with type arguments of type Versioned | |
---|---|
java.util.List<Versioned<T>> |
VectorClockInconsistencyResolver.resolveConflicts(java.util.List<Versioned<T>> items)
|
java.util.List<Versioned<T>> |
TimeBasedInconsistencyResolver.resolveConflicts(java.util.List<Versioned<T>> items)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |