public final class StateFactory
extends java.lang.Object
State
instancesModifier and Type | Method and Description |
---|---|
static State |
getState(java.lang.String namespace,
java.util.Map<java.lang.String,java.lang.Object> topoConf,
TopologyContext context)
Returns a new state instance using the
Config.TOPOLOGY_STATE_PROVIDER or
a InMemoryKeyValueState if no provider is
configured. |
public static State getState(java.lang.String namespace, java.util.Map<java.lang.String,java.lang.Object> topoConf, TopologyContext context)
Config.TOPOLOGY_STATE_PROVIDER
or
a InMemoryKeyValueState
if no provider is
configured.namespace
- the state namespacetopoConf
- the storm confcontext
- the topology context