[ 
https://issues.apache.org/jira/browse/GOBBLIN-2115?focusedWorklogId=926533&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-926533
 ]

ASF GitHub Bot logged work on GOBBLIN-2115:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Jul/24 19:31
            Start Date: 18/Jul/24 19:31
    Worklog Time Spent: 10m 
      Work Description: arjun4084346 commented on code in PR #3999:
URL: https://github.com/apache/gobblin/pull/3999#discussion_r1683376782


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagStateStoreWithDagNodes.java:
##########
@@ -0,0 +1,41 @@
+/*
+ * 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.gobblin.service.modules.orchestration;
+
+import java.io.IOException;
+import java.util.Optional;
+import java.util.Set;
+
+import org.apache.gobblin.service.modules.flowgraph.Dag;
+import org.apache.gobblin.service.modules.flowgraph.DagNodeId;
+import org.apache.gobblin.service.modules.spec.JobExecutionPlan;
+
+
+/**
+ * An interface for storing and retrieving currently running {@link 
Dag.DagNode<JobExecutionPlan>}s.
+ * Callers should use {@link DagStateStore#writeCheckpoint} to store dags. 
After that, to update individual
+ * {@link Dag.DagNode}s, {@link DagStateStoreWithDagNodes#updateDagNode} 
should be used.
+ * {@link DagStateStore#cleanUp(DagManager.DagId)} should be used to delete 
all the {@link Dag.DagNode}s for a {@link Dag}.
+ */
+public interface DagStateStoreWithDagNodes extends DagStateStore {
+  int updateDagNode(DagManager.DagId dagId, Dag.DagNode<JobExecutionPlan> 
dagNode) throws IOException;
+
+  Set<Dag.DagNode<JobExecutionPlan>> getDagNodes(DagManager.DagId dagId) 
throws IOException;
+
+  Optional<Dag.DagNode<JobExecutionPlan>> getDagNode(DagNodeId dagNodeId) 
throws IOException;

Review Comment:
   because the set can be empty





Issue Time Tracking
-------------------

    Worklog Id:     (was: 926533)
    Time Spent: 0.5h  (was: 20m)

> implement fully mysql based DMSS
> --------------------------------
>
>                 Key: GOBBLIN-2115
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2115
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Arjun Singh Bora
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to