-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #923 from ctripcorp/feature/keeper_locate
新增keepe详情页面,shard查询页面
- Loading branch information
Showing
25 changed files
with
577 additions
and
7 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
101 changes: 101 additions & 0 deletions
101
redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/model/KeeperMsgModel.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,101 @@ | ||
package com.ctrip.xpipe.redis.console.model; | ||
|
||
public class KeeperMsgModel { | ||
|
||
private String ip; | ||
private int port; | ||
private String clusterName; | ||
private String shardName; | ||
private boolean active; | ||
private String role; | ||
private String err; | ||
|
||
public KeeperMsgModel(String ip, int port, String clusterName, String shardName) { | ||
this.ip = ip; | ||
this.port = port; | ||
this.clusterName = clusterName; | ||
this.shardName = shardName; | ||
} | ||
|
||
public KeeperMsgModel(String clusterName, String shardName) { | ||
this.clusterName = clusterName; | ||
this.shardName = shardName; | ||
} | ||
|
||
public KeeperMsgModel(String err) { | ||
this.err = err; | ||
} | ||
|
||
public String getIp() { | ||
return ip; | ||
} | ||
|
||
public void setIp(String ip) { | ||
this.ip = ip; | ||
} | ||
|
||
public int getPort() { | ||
return port; | ||
} | ||
|
||
public void setPort(int port) { | ||
this.port = port; | ||
} | ||
|
||
public String getClusterName() { | ||
return clusterName; | ||
} | ||
|
||
public void setClusterName(String clusterName) { | ||
this.clusterName = clusterName; | ||
} | ||
|
||
public String getShardName() { | ||
return shardName; | ||
} | ||
|
||
public void setShardName(String shardName) { | ||
this.shardName = shardName; | ||
} | ||
|
||
public boolean isActive() { | ||
return active; | ||
} | ||
|
||
public void setActive(boolean active) { | ||
this.active = active; | ||
} | ||
|
||
public String getRole() { | ||
return role; | ||
} | ||
|
||
public void setRole(String role) { | ||
this.role = role; | ||
} | ||
|
||
public String getErr() { | ||
return err; | ||
} | ||
|
||
public void setErr(String err) { | ||
this.err = err; | ||
} | ||
|
||
public void addErr(String err) { | ||
this.err += err; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "KeeperMsgModel{" + | ||
"ip='" + ip + '\'' + | ||
", port=" + port + | ||
", clusterName='" + clusterName + '\'' + | ||
", shardName='" + shardName + '\'' + | ||
", active=" + active + | ||
", role='" + role + '\'' + | ||
", err='" + err + '\'' + | ||
'}'; | ||
} | ||
} |
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
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
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
Oops, something went wrong.