public boolean isActive() { return redisServer.isActive(); }
public boolean isActive() { return redisServer.isActive(); }
@PreDestroy public void destroy() { if (redisServer.isActive()) { redisServer.stop(); } } }
@PreDestroy public void destroy() { if (redisServer.isActive()) { redisServer.stop(); } } }
@PreDestroy public void destroy() { if (redisServer.isActive()) { redisServer.stop(); } } }
@PostConstruct public void init() throws IOException { logger.info("Load Auto Configuration : {}", this.getClass().getName()); logger.info("Enabled Dew Test"); redisServer = new RedisServer(); if (!redisServer.isActive()) { try { redisServer.start(); redisTemplate.getConnectionFactory().getConnection(); } catch (Exception e) { logger.warn("Start embedded redis error."); } } }
@PostConstruct public void init() throws IOException { log.info("======================= Enabled Devx Test ======================="); redisServer = new RedisServer(); if (!redisServer.isActive()) { try { redisServer.start(); redisTemplate.getConnectionFactory().getConnection(); } catch (Exception e) { log.error("Start embedded redis error.", e); } } }
@PostConstruct public void init() throws IOException { logger.info("Enabled Dew Test"); redisServer = new RedisServer(); if (!redisServer.isActive()) { try { redisServer.start(); redisTemplate.getConnectionFactory().getConnection(); } catch (Exception e) { logger.error("Start embedded redis error.", e); } } }