redis.clients.jedis
Class JedisShardInfo

java.lang.Object
  extended by redis.clients.util.ShardInfo<Jedis>
      extended by redis.clients.jedis.JedisShardInfo

public class JedisShardInfo
extends ShardInfo<Jedis>


Constructor Summary
JedisShardInfo(String host)
           
JedisShardInfo(String host, int port)
           
JedisShardInfo(String host, int port, int timeout)
           
JedisShardInfo(String host, int port, int timeout, int weight)
           
JedisShardInfo(String host, int port, int timeout, String name)
           
JedisShardInfo(String host, int port, String name)
           
JedisShardInfo(String host, String name)
           
 
Method Summary
 Jedis createResource()
           
 String getHost()
           
 String getName()
           
 String getPassword()
           
 int getPort()
           
 int getTimeout()
           
 void setPassword(String auth)
           
 void setTimeout(int timeout)
           
 String toString()
           
 
Methods inherited from class redis.clients.util.ShardInfo
getWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JedisShardInfo

public JedisShardInfo(String host)

JedisShardInfo

public JedisShardInfo(String host,
                      String name)

JedisShardInfo

public JedisShardInfo(String host,
                      int port)

JedisShardInfo

public JedisShardInfo(String host,
                      int port,
                      String name)

JedisShardInfo

public JedisShardInfo(String host,
                      int port,
                      int timeout)

JedisShardInfo

public JedisShardInfo(String host,
                      int port,
                      int timeout,
                      String name)

JedisShardInfo

public JedisShardInfo(String host,
                      int port,
                      int timeout,
                      int weight)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getHost

public String getHost()

getPort

public int getPort()

getPassword

public String getPassword()

setPassword

public void setPassword(String auth)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

getName

public String getName()
Specified by:
getName in class ShardInfo<Jedis>

createResource

public Jedis createResource()
Specified by:
createResource in class ShardInfo<Jedis>


Copyright © 2012. All Rights Reserved.