public class StandardStateManager extends Object implements StateManager
| Modifier and Type | Field and Description |
|---|---|
private StateProvider |
clusterProvider |
private String |
componentId |
private StateProvider |
localProvider |
| Constructor and Description |
|---|
StandardStateManager(StateProvider localProvider,
StateProvider clusterProvider,
String componentId) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(Scope scope) |
private ComponentLog |
getLogger(String componentId) |
private StateProvider |
getProvider(Scope scope) |
StateMap |
getState(Scope scope) |
boolean |
replace(StateMap oldValue,
Map<String,String> newValue,
Scope scope) |
void |
setState(Map<String,String> state,
Scope scope) |
String |
toString() |
private final StateProvider localProvider
private final StateProvider clusterProvider
private final String componentId
public StandardStateManager(StateProvider localProvider, StateProvider clusterProvider, String componentId)
private StateProvider getProvider(Scope scope)
private ComponentLog getLogger(String componentId)
public StateMap getState(Scope scope) throws IOException
getState in interface StateManagerIOExceptionpublic boolean replace(StateMap oldValue, Map<String,String> newValue, Scope scope) throws IOException
replace in interface StateManagerIOExceptionpublic void setState(Map<String,String> state, Scope scope) throws IOException
setState in interface StateManagerIOExceptionpublic void clear(Scope scope) throws IOException
clear in interface StateManagerIOExceptionCopyright © 2021 Apache NiFi Project. All rights reserved.