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 StategetState(String namespace, Map<String,Object> topoConf, TopologyContext context)Returns a new state instance using theConfig.TOPOLOGY_STATE_PROVIDERor aInMemoryKeyValueStateif 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_PROVIDERor aInMemoryKeyValueStateif no provider is configured.- Parameters:
namespace- the state namespacetopoConf- the storm confcontext- the topology context- Returns:
- the state instance
-
-