I have added SENTINEL related methods to Jedis class down to Protocol via Client and BinaryClient classes.
Probably instead of having so many new methods one could have SentinelParams class (just like SortingParams for sort).
At the same time was not sure about checkIsInMulti() - should it be in every call now? Most does not apply to SENTINEL methods as MULTI is not allowed.
Test based on config files taken from noise/redis-sentinel-tests.
Time to build hamsterready/jedis-sentinel-pool - still might need to refactor JedisPool as it is not extendable (non empty constructors are evil ;-)).
Do we have a status on this? Supporting Sentinel is important to a lot of users. It would be a pity for Jeids to not support Sentinel when it is (hopefully soon) declared stable.
There is doc somewhere at redis.io where antirez decribes how clients should behave. Afaik my pull brings some of that behaviour but not everything.
Nice pull request! I have reviewed the code and I like it. I'm not sure how you run the tests... do you need a sentinel up&running?
Grab configs from https://github.com/noise/redis-sentinel-tests and fire up master, slave and sentinels as described on that page:
Open a bunch of shells and fire up redis instances:
Just changed the way it is tested to be automatic, so you keep the same simple "make test" :)