och5351 commented on code in PR #4436:
URL: https://github.com/apache/streampark/pull/4436#discussion_r3610553662


##########
streampark-flink/streampark-flink-core/src/main/java/org/apache/streampark/flink/core/FlinkStreamingJob.java:
##########
@@ -0,0 +1,60 @@
+/*
+ * 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.streampark.flink.core;
+
+import org.apache.flink.api.common.JobExecutionResult;
+import org.apache.flink.api.java.utils.ParameterTool;
+import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
+
+public abstract class FlinkStreamingJob {

Review Comment:
   Thank you for the review @wolfboys !
   
   1. Regarding FlinkStreamTable and FlinkTable — this PR intentionally covers 
only Phase 0.1 of the #4408 roadmap, limiting the scope to FlinkStreamingJob. 
The remaining classes are planned for subsequent phases. I apologize if that 
context wasn't clear enough in the PR description. If my approach is off track, 
I would really appreciate your feedback.
   
   2. Regarding the difference from the Scala version — the lifecycle structure 
(init → ready → handle → execute → destroy) follows the original. The 
differences are intentional: since FlinkStreamingInitializer and 
StreamingContext are themselves Scala components targeted for removal in later 
phases, the Java version uses Flink's standard APIs directly instead of 
depending on them. This was a deliberate decision to avoid StreamPark's own 
wrapper classes, but I'd love your thoughts on whether this direction is the 
right one.
   



-- 
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