Examples of sentinelGetMasterAddrByName()


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

    if (MASTER_NAME.equals(master.get("name")))
        inMasters = true;

      assertTrue(inMasters);

      List<String> masterHostAndPort = j
        .sentinelGetMasterAddrByName(MASTER_NAME);
      HostAndPort masterFromSentinel = new HostAndPort(
        masterHostAndPort.get(0),
        Integer.parseInt(masterHostAndPort.get(1)));
      assertEquals(master, masterFromSentinel);
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.