Search in sources :

Example 16 with UserConfig

use of io.mycat.config.model.UserConfig in project Mycat-Server by MyCATApache.

the class ConfigTest method testReadUserBenchmark.

/**
	 * 测试 用户服务降级 拒连 配置
	 */
@Test
public void testReadUserBenchmark() {
    UserConfig userConfig = this.users.get("test");
    int benchmark = userConfig.getBenchmark();
    Assert.assertTrue(benchmark == 11111);
}
Also used : UserConfig(io.mycat.config.model.UserConfig) Test(org.junit.Test)

Aggregations

UserConfig (io.mycat.config.model.UserConfig)16 MycatConfig (io.mycat.config.MycatConfig)5 SchemaConfig (io.mycat.config.model.SchemaConfig)5 FirewallConfig (io.mycat.config.model.FirewallConfig)4 ArrayList (java.util.ArrayList)4 Pattern (java.util.regex.Pattern)4 PhysicalDBNode (io.mycat.backend.datasource.PhysicalDBNode)3 PhysicalDBPool (io.mycat.backend.datasource.PhysicalDBPool)3 MycatCluster (io.mycat.config.MycatCluster)3 ConfigException (io.mycat.config.util.ConfigException)3 List (java.util.List)3 TreeSet (java.util.TreeSet)3 ConfigInitializer (io.mycat.config.ConfigInitializer)2 EOFPacket (io.mycat.net.mysql.EOFPacket)2 FieldPacket (io.mycat.net.mysql.FieldPacket)2 RowDataPacket (io.mycat.net.mysql.RowDataPacket)2 ByteBuffer (java.nio.ByteBuffer)2 Matcher (java.util.regex.Matcher)2 Element (org.w3c.dom.Element)2 Node (org.w3c.dom.Node)2