Examples of sentinelMonitor()


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

    public void sentinelMonitor() {
  Jedis j = new Jedis(sentinel.getHost(), sentinel.getPort());

  try {
      // monitor new master
      String result = j.sentinelMonitor(MONITOR_MASTER_NAME, MASTER_IP,
        master.getPort(), 1);
      assertEquals("OK", result);

      // already monitored
      try {
View Full Code Here

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

        master.getPort(), 1);
      assertEquals("OK", result);

      // already monitored
      try {
    j.sentinelMonitor(MONITOR_MASTER_NAME, MASTER_IP,
      master.getPort(), 1);
    fail();
      } catch (JedisDataException e) {
    // pass
      }
View Full Code Here

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

    private void ensureMonitored(HostAndPort sentinel, String masterName,
      String ip, int port, int quorum) {
  Jedis j = new Jedis(sentinel.getHost(), sentinel.getPort());
  try {
      j.sentinelMonitor(masterName, ip, port, quorum);
  } 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.