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;
}
}
Aggregations