Package org.apache.storm.state
Class StateFactory
- java.lang.Object
-
- org.apache.storm.state.StateFactory
-
-
Constructor Summary
Constructors Constructor Description StateFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static State
getState(String namespace, Map<String,Object> topoConf, TopologyContext context)
Returns a new state instance using theConfig.TOPOLOGY_STATE_PROVIDER
or aInMemoryKeyValueState
if no provider is configured.
-
-
-
Method Detail
-
getState
public static State getState(String namespace, Map<String,Object> topoConf, TopologyContext context)
Returns a new state instance using theConfig.TOPOLOGY_STATE_PROVIDER
or aInMemoryKeyValueState
if no provider is configured.- Parameters:
namespace
- the state namespacetopoConf
- the storm confcontext
- the topology context- Returns:
- the state instance
-
-