logger.info("Building JedisSentinelPool, on sentinel sentinelHosts:" + Arrays.toString(sentinelHosts)
+ " ,sentinelPort is " + sentinelPort + " ,masterName is " + sentinelMasterName);
HostAndPort[] sentinelAddress = new HostAndPort[sentinelHosts.length];
for (int i = 0; i < sentinelHosts.length; i++) {
sentinelAddress[i] = new HostAndPort(sentinelHosts[i], sentinelPort);
}
return new JedisSentinelPool(sentinelAddress, sentinelMasterName, connectionInfo, config);
}