|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sdnplatform.sync.internal.store.ListenerStorageEngine
org.sdnplatform.sync.internal.store.SynchronizingStorageEngine
public class SynchronizingStorageEngine
This storage engine will asynchronously replicate its data to the other nodes in the cluster based on the scope of the s
Field Summary | |
---|---|
protected static org.slf4j.Logger |
logger
|
protected ISyncService.Scope |
scope
The scope of distribution for data in this store |
protected SyncManager |
syncManager
The synchronization manager |
Fields inherited from class org.sdnplatform.sync.internal.store.ListenerStorageEngine |
---|
debugCounter, listeners, localStorage |
Constructor Summary | |
---|---|
SynchronizingStorageEngine(IStorageEngine<ByteArray,byte[]> localStorage,
SyncManager syncManager,
IDebugCounterService debugCounter,
ISyncService.Scope scope)
Allocate a synchronizing storage engine |
Method Summary | |
---|---|
ISyncService.Scope |
getScope()
Get the scope for this store |
void |
put(ByteArray key,
Versioned<byte[]> value)
Associate the value with the key and version in this store |
Methods inherited from class org.sdnplatform.sync.internal.store.ListenerStorageEngine |
---|
addListener, cleanupTask, close, entries, get, getName, getVersions, isPersistent, keys, notifyListeners, notifyListeners, setTombstoneInterval, truncate, updateCounter, writeSyncValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.slf4j.Logger logger
protected SyncManager syncManager
protected ISyncService.Scope scope
Constructor Detail |
---|
public SynchronizingStorageEngine(IStorageEngine<ByteArray,byte[]> localStorage, SyncManager syncManager, IDebugCounterService debugCounter, ISyncService.Scope scope)
localStorage
- the local storagesyncManager
- the sync managerdebugCounter
- the debug counter servicescope
- the scope for this storerpcService
- the RPC servicestoreName
- the name of the storeMethod Detail |
---|
public void put(ByteArray key, Versioned<byte[]> value) throws SyncException
IStore
put
in interface IStore<ByteArray,byte[]>
put
in class ListenerStorageEngine
key
- The key to usevalue
- The value to store and its version.
SyncException
public ISyncService.Scope getScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |