예제 #1
0
파일: Client.java 프로젝트: Coselding/jedis
 public void cluster(final String subcommand, final String... args) {
   final byte[][] arg = new byte[args.length + 1][];
   for (int i = 1; i < arg.length; i++) {
     arg[i] = SafeEncoder.encode(args[i - 1]);
   }
   arg[0] = SafeEncoder.encode(subcommand);
   cluster(arg);
 }
예제 #2
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterKeySlot(final String key) {
   cluster(Protocol.CLUSTER_KEYSLOT, key);
 }
예제 #3
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterFlushSlots() {
   cluster(Protocol.CLUSTER_FLUSHSLOT);
 }
예제 #4
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterForget(final String nodeId) {
   cluster(Protocol.CLUSTER_FORGET, nodeId);
 }
예제 #5
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterSetSlotStable(final int slot) {
   cluster(Protocol.CLUSTER_SETSLOT, String.valueOf(slot), Protocol.CLUSTER_SETSLOT_STABLE);
 }
예제 #6
0
파일: Client.java 프로젝트: Coselding/jedis
 public void cluster(final String subcommand) {
   final byte[][] arg = new byte[1][];
   arg[0] = SafeEncoder.encode(subcommand);
   cluster(arg);
 }
예제 #7
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterFailover() {
   cluster(Protocol.CLUSTER_FAILOVER);
 }
예제 #8
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterReplicate(final String nodeId) {
   cluster(Protocol.CLUSTER_REPLICATE, nodeId);
 }
예제 #9
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterGetKeysInSlot(final int slot, final int count) {
   final int[] args = new int[] {slot, count};
   cluster(Protocol.CLUSTER_GETKEYSINSLOT, args);
 }
예제 #10
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterInfo() {
   cluster(Protocol.CLUSTER_INFO);
 }
예제 #11
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterDelSlots(final int... slots) {
   cluster(Protocol.CLUSTER_DELSLOTS, slots);
 }
예제 #12
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterAddSlots(final int... slots) {
   cluster(Protocol.CLUSTER_ADDSLOTS, slots);
 }
예제 #13
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterReset(Reset resetType) {
   cluster(Protocol.CLUSTER_RESET, resetType.toString());
 }
예제 #14
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterMeet(final String ip, final int port) {
   cluster(Protocol.CLUSTER_MEET, ip, String.valueOf(port));
 }
예제 #15
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterNodes() {
   cluster(Protocol.CLUSTER_NODES);
 }
예제 #16
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterCountKeysInSlot(final int slot) {
   cluster(Protocol.CLUSTER_COUNTKEYINSLOT, String.valueOf(slot));
 }
예제 #17
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterSaveConfig() {
   cluster(Protocol.CLUSTER_SAVECONFIG);
 }
예제 #18
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterSetSlotNode(final int slot, final String nodeId) {
   cluster(Protocol.CLUSTER_SETSLOT, String.valueOf(slot), Protocol.CLUSTER_SETSLOT_NODE, nodeId);
 }
예제 #19
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterSlaves(final String nodeId) {
   cluster(Protocol.CLUSTER_SLAVES, nodeId);
 }
예제 #20
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterSetSlotMigrating(final int slot, final String nodeId) {
   cluster(
       Protocol.CLUSTER_SETSLOT, String.valueOf(slot), Protocol.CLUSTER_SETSLOT_MIGRATING, nodeId);
 }
예제 #21
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterSlots() {
   cluster(Protocol.CLUSTER_SLOTS);
 }
예제 #22
0
파일: Client.java 프로젝트: Coselding/jedis
 public void clusterSetSlotImporting(final int slot, final String nodeId) {
   cluster(
       Protocol.CLUSTER_SETSLOT, String.valueOf(slot), Protocol.CLUSTER_SETSLOT_IMPORTING, nodeId);
 }