提交 a61ef475 编写于 作者: J jialinsun

clean code

上级 4877eafe
......@@ -78,10 +78,6 @@ public class CatHomeModule extends AbstractModule {
Threads.forGroup("cat").start(storageCacheAlert);
}
WebAlert webAlert = ctx.lookup(WebAlert.class);
Threads.forGroup("cat").start(webAlert);
final MessageConsumer consumer = ctx.lookup(MessageConsumer.class);
Runtime.getRuntime().addShutdownHook(new Thread() {
......
......@@ -36,7 +36,7 @@ public class WebRuleConfigManager extends BaseRuleConfigManager implements Initi
rule.addConfig(buildDefaultConfig());
m_config.addRule(rule);
if (!storeConfig()) {
Cat.logError("store app command rule error: " + name + " " + " " + commandId, new RuntimeException());
Cat.logError("store web api rule error: " + name + " " + " " + commandId, new RuntimeException());
}
}
......
......@@ -329,36 +329,6 @@ public class Model extends ViewModel<SystemPage, Action, Context> {
return m_groupDomain;
}
// public String getGroup2PatternItemJson() {
// Map<String, List<PatternItem>> maps = new LinkedHashMap<String, List<PatternItem>>();
//
// for (PatternItem item : m_patternItems) {
// List<PatternItem> items = maps.get(item.getGroup());
//
// if (items == null) {
// items = new ArrayList<PatternItem>();
// maps.put(item.getGroup(), items);
// }
// items.add(item);
// }
// return new JsonBuilder().toJson(maps);
// }
// public Map<String, List<PatternItem>> getGroup2PatternItems() {
// Map<String, List<PatternItem>> maps = new LinkedHashMap<String, List<PatternItem>>();
//
// for (PatternItem item : m_patternItems) {
// List<PatternItem> items = maps.get(item.getGroup());
//
// if (items == null) {
// items = new ArrayList<PatternItem>();
// maps.put(item.getGroup(), items);
// }
// items.add(item);
// }
// return maps;
// }
public List<String> getHeartbeatExtensionMetrics() {
return m_heartbeatExtensionMetrics;
}
......@@ -488,7 +458,6 @@ public class Model extends ViewModel<SystemPage, Action, Context> {
}
public Map<Integer, com.dianping.cat.configuration.web.url.entity.Code> getWebCodes() {
System.out.println(m_webCodes);
return m_webCodes;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册