|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sdnplatform.sync.internal.remote.RemoteStore
public class RemoteStore
A store implementation that will connect to a remote sync instance
| Constructor Summary | |
|---|---|
RemoteStore(java.lang.String storeName,
RemoteSyncManager syncManager)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the store. |
IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> |
entries()
Get an iterator over pairs of entries in the store. |
java.util.List<Versioned<byte[]>> |
get(ByteArray key)
Get the value associated with the given key |
java.lang.String |
getName()
|
java.util.List<IVersion> |
getVersions(ByteArray key)
Get a list of the versions associated with the given key |
void |
put(ByteArray key,
Versioned<byte[]> value)
Associate the value with the key and version in this store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteStore(java.lang.String storeName,
RemoteSyncManager syncManager)
| Method Detail |
|---|
public java.util.List<Versioned<byte[]>> get(ByteArray key)
throws SyncException
IStore
get in interface IStore<ByteArray,byte[]>key - The key to check for
SyncExceptionpublic IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> entries()
IStore
entries in interface IStore<ByteArray,byte[]>
public void put(ByteArray key,
Versioned<byte[]> value)
throws SyncException
IStore
put in interface IStore<ByteArray,byte[]>key - The key to usevalue - The value to store and its version.
SyncException
public java.util.List<IVersion> getVersions(ByteArray key)
throws SyncException
IStore
getVersions in interface IStore<ByteArray,byte[]>key - the key
IVersion objects
SyncExceptionpublic java.lang.String getName()
getName in interface IStore<ByteArray,byte[]>
public void close()
throws SyncException
IStore
close in interface IStore<ByteArray,byte[]>SyncException - If closing fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||