public abstract class StateStoreManagerProxy<V> extends Object implements StateStoreManager
Based on the given StorageMode, different implementation instance of the AbstractStateStrategy class will be created. All method calls will be delegated to the strategy instance.
| Modifier and Type | Field and Description |
|---|---|
protected AbstractStateStoreManager<V> |
stateStrategy |
| Constructor and Description |
|---|
StateStoreManagerProxy(AbstractKeyStateBackend keyStateBackend,
AbstractStateDescriptor stateDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
ackCommit(long checkpointId,
long timeStamp)
The ackCommit must be called after commit in the same thread.
|
void |
close() |
void |
commit(long checkpointId)
The commit can be used in another thread to reach async state commit.
|
void |
finish(long checkpointId)
The finish method is used when the batched data is all saved in state.
|
V |
get(String key) |
void |
put(String key,
V value) |
void |
rollBack(long checkpointId)
The rollback method is used for recovering the checkpoint.
|
protected void |
setKeyGroupIndex(int index) |
protected final AbstractStateStoreManager<V> stateStrategy
public StateStoreManagerProxy(AbstractKeyStateBackend keyStateBackend, AbstractStateDescriptor stateDescriptor)
protected void setKeyGroupIndex(int index)
public void finish(long checkpointId)
StateStoreManagerfinish in interface StateStoreManagerpublic void commit(long checkpointId)
commit in interface StateStoreManagerpublic void ackCommit(long checkpointId,
long timeStamp)
ackCommit in interface StateStoreManagerpublic void rollBack(long checkpointId)
StateStoreManagerrollBack in interface StateStoreManagerpublic void close()
Copyright © 2020. All rights reserved.