Java Code Examples for com.alibaba.dubbo.config.MonitorConfig#setGroup()
The following examples show how to use
com.alibaba.dubbo.config.MonitorConfig#setGroup() .
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: DubboBeanDefinitionParser.java From dubbox with Apache License 2.0 | 6 votes |
protected static MonitorConfig convertMonitor(String monitor) { if (monitor == null || monitor.length() == 0) { return null; } if (GROUP_AND_VERION.matcher(monitor).matches()) { String group; String version; int i = monitor.indexOf(':'); if (i > 0) { group = monitor.substring(0, i); version = monitor.substring(i + 1); } else { group = monitor; version = null; } MonitorConfig monitorConfig = new MonitorConfig(); monitorConfig.setGroup(group); monitorConfig.setVersion(version); return monitorConfig; } return null; }
Example 2
Source File: DubboBeanDefinitionParser.java From dubbox-hystrix with Apache License 2.0 | 6 votes |
protected static MonitorConfig convertMonitor(String monitor) { if (monitor == null || monitor.length() == 0) { return null; } if (GROUP_AND_VERION.matcher(monitor).matches()) { String group; String version; int i = monitor.indexOf(':'); if (i > 0) { group = monitor.substring(0, i); version = monitor.substring(i + 1); } else { group = monitor; version = null; } MonitorConfig monitorConfig = new MonitorConfig(); monitorConfig.setGroup(group); monitorConfig.setVersion(version); return monitorConfig; } return null; }
Example 3
Source File: DubboBeanDefinitionParser.java From dubbo3 with Apache License 2.0 | 6 votes |
protected static MonitorConfig convertMonitor(String monitor) { if (monitor == null || monitor.length() == 0) { return null; } if (GROUP_AND_VERION.matcher(monitor).matches()) { String group; String version; int i = monitor.indexOf(':'); if (i > 0) { group = monitor.substring(0, i); version = monitor.substring(i + 1); } else { group = monitor; version = null; } MonitorConfig monitorConfig = new MonitorConfig(); monitorConfig.setGroup(group); monitorConfig.setVersion(version); return monitorConfig; } return null; }
Example 4
Source File: DubboBeanDefinitionParser.java From dubbox with Apache License 2.0 | 6 votes |
protected static MonitorConfig convertMonitor(String monitor) { if (monitor == null || monitor.length() == 0) { return null; } if (GROUP_AND_VERION.matcher(monitor).matches()) { String group; String version; int i = monitor.indexOf(':'); if (i > 0) { group = monitor.substring(0, i); version = monitor.substring(i + 1); } else { group = monitor; version = null; } MonitorConfig monitorConfig = new MonitorConfig(); monitorConfig.setGroup(group); monitorConfig.setVersion(version); return monitorConfig; } return null; }
Example 5
Source File: DubboBeanDefinitionParser.java From dubbox with Apache License 2.0 | 6 votes |
protected static MonitorConfig convertMonitor(String monitor) { if (monitor == null || monitor.length() == 0) { return null; } if (GROUP_AND_VERION.matcher(monitor).matches()) { String group; String version; int i = monitor.indexOf(':'); if (i > 0) { group = monitor.substring(0, i); version = monitor.substring(i + 1); } else { group = monitor; version = null; } MonitorConfig monitorConfig = new MonitorConfig(); monitorConfig.setGroup(group); monitorConfig.setVersion(version); return monitorConfig; } return null; }