Search in sources :

Example 16 with ConfigModel

use of com.ctrip.xpipe.redis.console.model.ConfigModel in project x-pipe by ctripcorp.

the class ConfigDao method setKey.

public synchronized void setKey(String key, String val) throws DalException {
    ConfigModel model = new ConfigModel().setKey(key).setVal(val);
    setConfig(model);
}
Also used : ConfigModel(com.ctrip.xpipe.redis.console.model.ConfigModel)

Example 17 with ConfigModel

use of com.ctrip.xpipe.redis.console.model.ConfigModel in project x-pipe by ctripcorp.

the class ChangeConfig method startAlertSystem.

@RequestMapping(value = "/config/alert_system/start", method = RequestMethod.POST)
public void startAlertSystem(HttpServletRequest request, @RequestBody(required = false) ConfigModel configModel) throws DalException {
    ConfigModel config = configModel(request, configModel);
    configService.startAlertSystem(config);
}
Also used : ConfigModel(com.ctrip.xpipe.redis.console.model.ConfigModel)

Aggregations

ConfigModel (com.ctrip.xpipe.redis.console.model.ConfigModel)17 AbstractConsoleIntegrationTest (com.ctrip.xpipe.redis.console.AbstractConsoleIntegrationTest)5 Test (org.junit.Test)5 ConfigTbl (com.ctrip.xpipe.redis.console.model.ConfigTbl)4 Date (java.util.Date)3 RetMessage (com.ctrip.xpipe.redis.console.controller.api.RetMessage)2 DalException (org.unidal.dal.jdbc.DalException)2 UserInfo (com.ctrip.xpipe.api.sso.UserInfo)1