Search in sources :

Example 16 with UserConfig

use of com.actiontech.dble.config.model.UserConfig in project dble by actiontech.

the class ServerPrivileges method getBenchmark.

@Override
public int getBenchmark(String user) {
    ServerConfig conf = DbleServer.getInstance().getConfig();
    UserConfig uc = conf.getUsers().get(user);
    if (uc != null) {
        return uc.getBenchmark();
    } else {
        return 0;
    }
}
Also used : UserConfig(com.actiontech.dble.config.model.UserConfig)

Aggregations

UserConfig (com.actiontech.dble.config.model.UserConfig)16 ServerConfig (com.actiontech.dble.config.ServerConfig)5 FirewallConfig (com.actiontech.dble.config.model.FirewallConfig)5 SchemaConfig (com.actiontech.dble.config.model.SchemaConfig)5 PhysicalDBNode (com.actiontech.dble.backend.datasource.PhysicalDBNode)3 PhysicalDBPool (com.actiontech.dble.backend.datasource.PhysicalDBPool)3 ERTable (com.actiontech.dble.config.model.ERTable)3 List (java.util.List)3 Set (java.util.Set)3 ConfigInitializer (com.actiontech.dble.config.ConfigInitializer)2 ConfigException (com.actiontech.dble.config.util.ConfigException)2 EOFPacket (com.actiontech.dble.net.mysql.EOFPacket)2 FieldPacket (com.actiontech.dble.net.mysql.FieldPacket)2 RowDataPacket (com.actiontech.dble.net.mysql.RowDataPacket)2 ByteBuffer (java.nio.ByteBuffer)2 SQLException (java.sql.SQLException)2 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 Element (org.w3c.dom.Element)2 Node (org.w3c.dom.Node)2