Java Code Examples for com.baidu.disconf.client.common.update.IDisconfUpdate#reload()
The following examples show how to use
com.baidu.disconf.client.common.update.IDisconfUpdate#reload() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DisconfCoreProcessUtils.java From disconf with Apache License 2.0 | 5 votes |
/** * 调用此配置影响的回调函数 */ public static void callOneConf(DisconfStoreProcessor disconfStoreProcessor, String key) throws Exception { List<IDisconfUpdate> iDisconfUpdates = disconfStoreProcessor.getUpdateCallbackList(key); // // 获取回调函数列表 // // CALL for (IDisconfUpdate iDisconfUpdate : iDisconfUpdates) { if (iDisconfUpdate != null) { LOGGER.info("start to call " + iDisconfUpdate.getClass()); // set defined try { iDisconfUpdate.reload(); } catch (Exception e) { LOGGER.error(e.toString(), e); } } } }
Example 2
Source File: DisconfCoreProcessUtils.java From disconf with Apache License 2.0 | 5 votes |
/** * 调用此配置影响的回调函数 */ public static void callOneConf(DisconfStoreProcessor disconfStoreProcessor, String key) throws Exception { List<IDisconfUpdate> iDisconfUpdates = disconfStoreProcessor.getUpdateCallbackList(key); // // 获取回调函数列表 // // CALL for (IDisconfUpdate iDisconfUpdate : iDisconfUpdates) { if (iDisconfUpdate != null) { LOGGER.info("start to call " + iDisconfUpdate.getClass()); // set defined try { iDisconfUpdate.reload(); } catch (Exception e) { LOGGER.error(e.toString(), e); } } } }