Package redis.clients.jedis

Examples of redis.clients.jedis.Jedis.sentinelRemove()


  try {
      ensureMonitored(sentinel, REMOVE_MASTER_NAME, MASTER_IP,
        master.getPort(), 1);

      String result = j.sentinelRemove(REMOVE_MASTER_NAME);
      assertEquals("OK", result);

      // not exist
      try {
    result = j.sentinelRemove(REMOVE_MASTER_NAME);
View Full Code Here


      String result = j.sentinelRemove(REMOVE_MASTER_NAME);
      assertEquals("OK", result);

      // not exist
      try {
    result = j.sentinelRemove(REMOVE_MASTER_NAME);
    assertNotEquals("OK", result);
    fail();
      } catch (JedisDataException e) {
    // pass
      }
View Full Code Here

    }

    private void ensureRemoved(String masterName) {
  Jedis j = new Jedis(sentinel.getHost(), sentinel.getPort());
  try {
      j.sentinelRemove(masterName);
  } catch (JedisDataException e) {
  } finally {
      j.close();
  }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.