public abstract class AbstractRedisState extends Object implements storm.trident.state.State
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
protected String |
host |
protected String |
id |
protected redis.clients.jedis.JedisPool |
pool |
protected int |
port |
static String |
REDIS_HOST_CONF |
static String |
REDIS_PORT_CONF |
protected storm.trident.state.Serializer<Object> |
serializer |
| Constructor and Description |
|---|
AbstractRedisState(String id) |
AbstractRedisState(String id,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushAll() |
protected String |
generateKey() |
protected String |
generateKey(List<Object> keys) |
protected String |
generateKey(Object key) |
protected static String |
getHost(Map conf) |
protected static Integer |
getPort(Map conf) |
public static final String DEFAULT_HOST
public static final int DEFAULT_PORT
public static final String REDIS_HOST_CONF
public static final String REDIS_PORT_CONF
protected String id
protected String host
protected int port
protected redis.clients.jedis.JedisPool pool
protected storm.trident.state.Serializer<Object> serializer
public AbstractRedisState(String id)
protected String generateKey()
public void flushAll()
Copyright © 2013. All Rights Reserved.