protected void initializeRedis() { ConfigurationSection config = getConfig().getConfigurationSection("redis"); String host = config.getString("host", "localhost"); int port = config.getInt("port", 6379); int timeout = config.getInt("timeout", 5000); redisClient = new RedisClient(host, port); redisClient.setDefaultTimeout(timeout, TimeUnit.MILLISECONDS); log("Connecting to Redis at %s:%d", host, port); log(" Ping? %s", redis().ping()); log(" Found %d keys", redis().dbsize()); }
public void debug(String message) { log(Level.FINE, message); }
public void log(Level level, String message, Object... args) { log(level, String.format(message, args)); }
public void log(String message, Object... args) { log(String.format(message, args)); }
public void log(String message) { log(Level.INFO, message); }