Examples of sentinelSlaves()


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

      HostAndPort masterFromSentinel = new HostAndPort(
        masterHostAndPort.get(0),
        Integer.parseInt(masterHostAndPort.get(1)));
      assertEquals(master, masterFromSentinel);

      List<Map<String, String>> slaves = j.sentinelSlaves(MASTER_NAME);
      assertTrue(slaves.size() > 0);
      assertEquals(master.getPort(),
        Integer.parseInt(slaves.get(0).get("master-port")));

      // DO NOT RE-RUN TEST TOO FAST, RESET TAKES SOME TIME TO... RESET
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.