-
Notifications
You must be signed in to change notification settings - Fork 316
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 #3731 from actiontech/inner-2218
[inner-2218] Configuration support for HTAP
- Loading branch information
Showing
34 changed files
with
552 additions
and
54 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/main/java/com/actiontech/dble/backend/datasource/ApNode.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,8 @@ | ||
package com.actiontech.dble.backend.datasource; | ||
|
||
public class ApNode extends ShardingNode { | ||
|
||
public ApNode(String dbGroupName, String hostName, String database, PhysicalDbGroup dbGroup) { | ||
super(dbGroupName, hostName, database, dbGroup); | ||
} | ||
} |
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
59 changes: 59 additions & 0 deletions
59
src/main/java/com/actiontech/dble/cluster/zkprocess/entity/sharding/shardingnode/ApNode.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,59 @@ | ||
package com.actiontech.dble.cluster.zkprocess.entity.sharding.shardingnode; | ||
|
||
import com.actiontech.dble.cluster.zkprocess.entity.Named; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "apNode") | ||
public class ApNode implements Named { | ||
|
||
@XmlAttribute(required = true) | ||
private String name; | ||
|
||
@XmlAttribute(required = true) | ||
private String dbGroup; | ||
|
||
@XmlAttribute(required = true) | ||
private String database; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDbGroup() { | ||
return dbGroup; | ||
} | ||
|
||
public void setDbGroup(String dbGroup) { | ||
this.dbGroup = dbGroup; | ||
} | ||
|
||
public String getDatabase() { | ||
return database; | ||
} | ||
|
||
public void setDatabase(String database) { | ||
this.database = database; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
String builder = "ApNode [name=" + | ||
name + | ||
", dbGroup=" + | ||
dbGroup + | ||
", database=" + | ||
database + | ||
"]"; | ||
return builder; | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/actiontech/dble/cluster/zkprocess/entity/user/HybridTAUser.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,25 @@ | ||
package com.actiontech.dble.cluster.zkprocess.entity.user; | ||
|
||
import javax.xml.bind.annotation.*; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "hybridTAUser") | ||
@XmlRootElement | ||
public class HybridTAUser extends ShardingUser { | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("HybridTAUser{").append(super.toString()); | ||
sb.append(", schemas=").append(schemas); | ||
sb.append(", tenant=").append(tenant); | ||
sb.append(", readOnly=").append(readOnly); | ||
sb.append(", blacklist=").append(blacklist); | ||
|
||
if (privileges != null) { | ||
sb.append(", privileges=").append(privileges); | ||
} | ||
sb.append('}'); | ||
return sb.toString(); | ||
} | ||
} |
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.