private boolean dynomiteRedisCheck(){
  Jedis dynomiteJedis=new Jedis(LOCAL_ADDRESS,DYNO_PORT,5000);
  try {
    dynomiteJedis.connect();
    if (!dynomiteRedisPing(dynomiteJedis)) {
      sleeper.sleepQuietly(1000);
      if (!dynomiteRedisPing(dynomiteJedis)) {
        logger.warn("Second effort to ping Dynomite failed");
        return false;
      }
    }
  }
 catch (  Exception e) {
    logger.warn("Unable to create a Jedis connection to Dynomite" + e.getMessage());
    return false;
  }
  return true;
}

private boolean dynomiteRedisCheck ( ) { Jedis dynomiteJedis = new Jedis ( LOCAL_ADDRESS , DYNO_PORT , 5000 ) ; try { dynomiteJedis . connect ( ) ; if ( ! dynomiteRedisPing ( dynomiteJedis ) ) { sleeper . sleepQuietly ( 1000 ) ; if ( ! dynomiteRedisPing ( dynomiteJedis ) ) { logger . warn ( "Second effort to ping Dynomite failed" ) ; return false ; } } } catch ( Exception e ) { logger . warn ( "Unable to create a Jedis connection to Dynomite" + e . getMessage ( ) ) ; return false ; } return true ; }
basic health check for dynomite .
