GeezerVison is showing github.com — Merge pull request #465 from xxxllluuu/master · charooo/uavstack@a442483
File tree
Expand file treeCollapse file tree
Open diff view settings
com.creditease.uav.agent.buildComponent/bin com.creditease.uav.healthmanager/src/main/java/com/creditease/uav/feature/healthmanager/datastore/adaptors
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: com.creditease.uav.agent.buildComponent/bin/run4docker.sh -57Lines changed: 0 additions & 57 deletions Collapse file
Copy file name to clipboardExpand all lines: com.creditease.uav.agent.buildComponent/bin/run4k8s.sh -52Lines changed: 0 additions & 52 deletions Collapse file
Copy file name to clipboardExpand all lines: com.creditease.uav.agent.buildComponent/bin/start_ma_pro_docker.sh -4Lines changed: 0 additions & 4 deletions Collapse file
Copy file name to clipboardExpand all lines: com.creditease.uav.agent.buildComponent/bin/start_ma_pro_k8s.sh -5Lines changed: 0 additions & 5 deletions Collapse file
Copy file name to clipboardExpand all lines: com.creditease.uav.agent.buildComponent/bin/start_ma_test_docker.sh -5Lines changed: 0 additions & 5 deletions Collapse file
Copy file name to clipboardExpand all lines: com.creditease.uav.agent.buildComponent/bin/start_ma_test_k8s.sh -5Lines changed: 0 additions & 5 deletions Collapse file
Copy file name to clipboardExpand all lines: com.creditease.uav.healthmanager/src/main/java/com/creditease/uav/feature/healthmanager/datastore/adaptors/NodeInfoDataAdapter.java +5-2Lines changed: 5 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
25 | 25 | import java.util.List; |
26 | 26 | import java.util.Map; |
27 | 27 |
|
| 28 | +import org.aredis.cache.StringHandler; |
| 29 | + |
28 | 30 | import com.creditease.agent.helpers.DataStoreHelper; |
29 | 31 | import com.creditease.agent.helpers.JSONHelper; |
| 32 | +import com.creditease.agent.helpers.StringHelper; |
30 | 33 | import com.creditease.agent.monitor.api.MonitorDataFrame; |
31 | 34 | import com.creditease.uav.datastore.api.DataStoreAdapter; |
32 | 35 | import com.creditease.uav.datastore.api.DataStoreConnection; |
@@ -196,8 +199,8 @@ private Map<String, String> createTags(MonitorDataFrame mdf, String instanceId, |
196 | 199 | } |
197 | 200 | else if (meId.indexOf("procState") == 0) { |
198 | 201 | String temp[] = instanceId.split("_"); |
199 | | - if ((temp[1].equals("java") || temp[1].equals("javaw.exe") || temp[1].equals("java.exe")) |
200 | | - && fields.get("main") != null) { |
| 202 | + if (("java".equals(temp[1]) || "javaw.exe".equals(temp[1]) || "java.exe".equals(temp[1])) |
| 203 | + && !StringHelper.isEmpty((String)fields.get("main"))) { |
201 | 204 |
|
202 | 205 | String mainClass = (String) fields.get("main"); |
203 | 206 | // group Id :for java, pgid is main class |
|