This is an automated email from the ASF dual-hosted git repository.
shenghang pushed a commit to branch improve-code
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/improve-code by this push:
new fcbd56699 [improve]improve code
fcbd56699 is described below
commit fcbd566994f865bb61c931b6579a7f3dc3ee73ef
Author: zhangshenghang <[email protected]>
AuthorDate: Wed Aug 14 08:45:47 2024 +0800
[improve]improve code
---
.../hertzbeat/collector/collect/jmx/JmxCollectImpl.java | 11 -----------
1 file changed, 11 deletions(-)
diff --git
a/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java
b/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java
index becdceb96..129db52fa 100644
---
a/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java
+++
b/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java
@@ -94,17 +94,6 @@ public class JmxCollectImpl extends AbstractCollect {
@Override
public void collect(CollectRep.MetricsData.Builder builder, long
monitorId, String app, Metrics metrics) {
- System.currentTimeMillis();
- new Date();
- JsonUtil.toJson(null);
- Properties properties = new Properties();
- InitialContext initialContext = null;
- try {
- initialContext = new InitialContext();
- initialContext.lookup("rmi://localhost:1097/Object");
- } catch (NamingException e) {
- throw new RuntimeException(e);
- }
try {
JmxProtocol jmxProtocol = metrics.getJmx();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]