-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prepare * CLUSTER RESET (ii) * CLUSTER FAILOVER with option * CLUSTER MYID * CLUSTER REPLICAS * READWRITE
- Loading branch information
Showing
11 changed files
with
200 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package redis.clients.jedis; | ||
|
||
import redis.clients.jedis.args.ClusterResetType; | ||
|
||
/** | ||
* @deprecated Use {@link ClusterResetType}. | ||
*/ | ||
@Deprecated | ||
public enum ClusterReset { | ||
SOFT, HARD | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/redis/clients/jedis/args/ClusterFailoverOption.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package redis.clients.jedis.args; | ||
|
||
import redis.clients.jedis.util.SafeEncoder; | ||
|
||
public enum ClusterFailoverOption implements Rawable { | ||
|
||
FORCE, TAKEOVER; | ||
|
||
private final byte[] raw; | ||
|
||
private ClusterFailoverOption() { | ||
this.raw = SafeEncoder.encode(name()); | ||
} | ||
|
||
@Override | ||
public byte[] getRaw() { | ||
return raw; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/redis/clients/jedis/args/ClusterResetType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package redis.clients.jedis.args; | ||
|
||
import redis.clients.jedis.util.SafeEncoder; | ||
|
||
public enum ClusterResetType implements Rawable { | ||
|
||
SOFT, HARD; | ||
|
||
private final byte[] raw; | ||
|
||
private ClusterResetType() { | ||
this.raw = SafeEncoder.encode(name()); | ||
} | ||
|
||
@Override | ||
public byte[] getRaw() { | ||
return raw; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters