agent注册交换机增加索引过滤
This commit is contained in:
+5
@@ -99,6 +99,7 @@ public class AgentConsumerDownListener implements RocketMQListener<String> {
|
||||
String pwrOID = "";
|
||||
String fanOID = "";
|
||||
String otherOID = "";
|
||||
String filters = "";
|
||||
JSONObject json = JSONObject.parseObject(switchBoard);
|
||||
if(json.containsKey("community")){
|
||||
community = json.getString("community");
|
||||
@@ -127,6 +128,9 @@ public class AgentConsumerDownListener implements RocketMQListener<String> {
|
||||
if(json.containsKey("otherOID")){
|
||||
otherOID = json.getString("otherOID");
|
||||
}
|
||||
if(json.containsKey("filters")){
|
||||
filters = json.getString("filters");
|
||||
}
|
||||
JSONObject switchBoardJson = new JSONObject();
|
||||
switchBoardJson.put("community",community);
|
||||
switchBoardJson.put("ip",switchIp);
|
||||
@@ -137,6 +141,7 @@ public class AgentConsumerDownListener implements RocketMQListener<String> {
|
||||
switchBoardJson.put("pwrOID",pwrOID);
|
||||
switchBoardJson.put("fanOID",fanOID);
|
||||
switchBoardJson.put("otherOID",otherOID);
|
||||
switchBoardJson.put("filters",filters);
|
||||
object.put("switchBoard",switchBoardJson.toString());
|
||||
AssertLog.info("交换机配置信息={}",switchBoardJson.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user