hailin0 commented on code in PR #4072:
URL: 
https://github.com/apache/incubator-seatunnel/pull/4072#discussion_r1105219676


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/rest/RestHttpGetCommandProcessor.java:
##########
@@ -0,0 +1,209 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.engine.server.rest;
+
+import 
org.apache.seatunnel.shade.com.fasterxml.jackson.core.JsonProcessingException;
+import org.apache.seatunnel.shade.com.fasterxml.jackson.databind.JsonNode;
+import org.apache.seatunnel.shade.com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.apache.seatunnel.engine.common.Constant;
+import 
org.apache.seatunnel.engine.common.loader.SeaTunnelChildFirstClassLoader;
+import org.apache.seatunnel.engine.core.dag.logical.LogicalDag;
+import org.apache.seatunnel.engine.core.job.JobImmutableInformation;
+import org.apache.seatunnel.engine.core.job.JobInfo;
+import org.apache.seatunnel.engine.core.job.JobStatus;
+import org.apache.seatunnel.engine.server.SeaTunnelServer;
+import org.apache.seatunnel.engine.server.log.Log4j2HttpGetCommandProcessor;
+
+import com.hazelcast.internal.ascii.TextCommandService;
+import com.hazelcast.internal.ascii.rest.HttpCommandProcessor;
+import com.hazelcast.internal.ascii.rest.HttpGetCommand;
+import com.hazelcast.internal.ascii.rest.HttpGetCommandProcessor;
+import com.hazelcast.internal.json.JsonArray;
+import com.hazelcast.internal.json.JsonObject;
+import com.hazelcast.internal.json.JsonValue;
+import com.hazelcast.internal.util.JsonUtil;
+import com.hazelcast.jet.impl.execution.init.CustomClassLoadedObject;
+import com.hazelcast.map.IMap;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+public class RestHttpGetCommandProcessor extends 
HttpCommandProcessor<HttpGetCommand> {
+
+    private final HttpGetCommandProcessor original;
+
+    private static final String SOURCE_RECEIVED_COUNT = "SourceReceivedCount";
+
+    private static final String SINK_WRITE_COUNT = "SinkWriteCount";
+
+    public RestHttpGetCommandProcessor(TextCommandService textCommandService) {
+        this(textCommandService, new 
HttpGetCommandProcessor(textCommandService));
+    }
+
+    public RestHttpGetCommandProcessor(
+            TextCommandService textCommandService,
+            HttpGetCommandProcessor httpGetCommandProcessor) {
+        super(
+                textCommandService,
+                
textCommandService.getNode().getLogger(Log4j2HttpGetCommandProcessor.class));

Review Comment:
   ```suggestion
                   
textCommandService.getNode().getLogger(RestHttpGetCommandProcessor.class));
   ```



##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/NodeExtension.java:
##########
@@ -77,6 +78,7 @@ public TextCommandService createTextCommandService() {
             {
                 register(HTTP_GET, new Log4j2HttpGetCommandProcessor(this));
                 register(HTTP_POST, new Log4j2HttpPostCommandProcessor(this));
+                register(HTTP_GET, new RestHttpGetCommandProcessor(this));

Review Comment:
   Please test `Log4j2HttpGetCommandProcessor` is normal



##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/NodeExtension.java:
##########
@@ -77,6 +78,7 @@ public TextCommandService createTextCommandService() {
             {
                 register(HTTP_GET, new Log4j2HttpGetCommandProcessor(this));
                 register(HTTP_POST, new Log4j2HttpPostCommandProcessor(this));
+                register(HTTP_GET, new RestHttpGetCommandProcessor(this));

Review Comment:
   @liugddx 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to