public class AtomixConsistentMapState
extends io.atomix.resource.ResourceStateMachine
implements io.atomix.copycat.server.session.SessionListener, io.atomix.copycat.server.Snapshottable
AtomixConsistentMap resource.| Constructor and Description |
|---|
AtomixConsistentMapState(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected MapEntryUpdateResult.Status |
clear(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Clear> commit)
Handles a clear commit.
|
void |
close(io.atomix.copycat.server.session.ServerSession session) |
protected CommitResult |
commit(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionCommit> commit)
Handles an commit commit (ha!).
|
protected void |
configure(io.atomix.copycat.server.StateMachineExecutor executor) |
protected boolean |
containsKey(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.ContainsKey> commit)
Handles a contains key commit.
|
protected boolean |
containsValue(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.ContainsValue> commit)
Handles a contains value commit.
|
void |
delete() |
protected Set<Map.Entry<String,org.onosproject.store.service.Versioned<byte[]>>> |
entrySet(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.EntrySet> commit)
Handles a entry set commit.
|
void |
expire(io.atomix.copycat.server.session.ServerSession session) |
protected org.onosproject.store.service.Versioned<byte[]> |
get(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Get> commit)
Handles a get commit.
|
void |
install(io.atomix.copycat.server.storage.snapshot.SnapshotReader reader) |
protected boolean |
isEmpty(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.IsEmpty> commit)
Handles an is empty commit.
|
protected Set<String> |
keySet(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.KeySet> commit)
Handles a keySet commit.
|
protected void |
listen(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Listen> commit)
Handles a listen commit.
|
protected PrepareResult |
prepare(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionPrepare> commit)
Handles an prepare commit.
|
protected PrepareResult |
prepareAndCommit(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionPrepareAndCommit> commit)
Handles an prepare and commit commit.
|
void |
register(io.atomix.copycat.server.session.ServerSession session) |
protected RollbackResult |
rollback(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionRollback> commit)
Handles an rollback commit (ha!).
|
protected int |
size(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Size> commit)
Handles a count commit.
|
void |
snapshot(io.atomix.copycat.server.storage.snapshot.SnapshotWriter writer) |
protected void |
unlisten(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Unlisten> commit)
Handles an unlisten commit.
|
void |
unregister(io.atomix.copycat.server.session.ServerSession session) |
protected MapEntryUpdateResult<String,byte[]> |
updateAndGet(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.UpdateAndGet> commit)
Handles a update and get commit.
|
protected Collection<org.onosproject.store.service.Versioned<byte[]>> |
values(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Values> commit)
Handles a values commit.
|
public AtomixConsistentMapState(Properties properties)
public void snapshot(io.atomix.copycat.server.storage.snapshot.SnapshotWriter writer)
snapshot in interface io.atomix.copycat.server.Snapshottablepublic void install(io.atomix.copycat.server.storage.snapshot.SnapshotReader reader)
install in interface io.atomix.copycat.server.Snapshottableprotected void configure(io.atomix.copycat.server.StateMachineExecutor executor)
configure in class io.atomix.copycat.server.StateMachinepublic void delete()
delete in class io.atomix.resource.ResourceStateMachineprotected boolean containsKey(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.ContainsKey> commit)
commit - containsKey committrue if map contains keyprotected boolean containsValue(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.ContainsValue> commit)
commit - containsValue committrue if map contains valueprotected org.onosproject.store.service.Versioned<byte[]> get(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Get> commit)
commit - get commitprotected int size(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Size> commit)
commit - size commitprotected boolean isEmpty(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.IsEmpty> commit)
commit - isEmpty committrue if map is emptyprotected Set<String> keySet(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.KeySet> commit)
commit - keySet commitprotected Collection<org.onosproject.store.service.Versioned<byte[]>> values(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Values> commit)
commit - values commitprotected Set<Map.Entry<String,org.onosproject.store.service.Versioned<byte[]>>> entrySet(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.EntrySet> commit)
commit - entrySet commitprotected MapEntryUpdateResult<String,byte[]> updateAndGet(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.UpdateAndGet> commit)
commit - updateAndGet commitprotected MapEntryUpdateResult.Status clear(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Clear> commit)
commit - clear commitprotected void listen(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Listen> commit)
commit - listen commitprotected void unlisten(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.Unlisten> commit)
commit - unlisten commitprotected PrepareResult prepareAndCommit(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionPrepareAndCommit> commit)
commit - transaction prepare and commit commitprotected PrepareResult prepare(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionPrepare> commit)
commit - transaction prepare commitprotected CommitResult commit(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionCommit> commit)
commit - transaction commit commitprotected RollbackResult rollback(io.atomix.copycat.server.Commit<? extends AtomixConsistentMapCommands.TransactionRollback> commit)
commit - transaction rollback commitpublic void register(io.atomix.copycat.server.session.ServerSession session)
register in interface io.atomix.copycat.server.session.SessionListenerregister in class io.atomix.resource.ResourceStateMachinepublic void unregister(io.atomix.copycat.server.session.ServerSession session)
unregister in interface io.atomix.copycat.server.session.SessionListenerunregister in class io.atomix.resource.ResourceStateMachinepublic void expire(io.atomix.copycat.server.session.ServerSession session)
expire in interface io.atomix.copycat.server.session.SessionListenerexpire in class io.atomix.resource.ResourceStateMachinepublic void close(io.atomix.copycat.server.session.ServerSession session)
close in interface io.atomix.copycat.server.session.SessionListenerclose in class io.atomix.resource.ResourceStateMachineCopyright © 2016. All rights reserved.