forked from DataLinkDC/dinky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,150 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
dinky-admin/src/main/java/org/dinky/service/SchedulerService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* | ||
* 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.dinky.service; | ||
|
||
import org.dinky.scheduler.model.DinkyTaskRequest; | ||
import org.dinky.scheduler.model.TaskDefinition; | ||
import org.dinky.scheduler.model.TaskMainInfo; | ||
|
||
import java.util.List; | ||
|
||
public interface SchedulerService { | ||
|
||
/** | ||
* Pushes the specified DinkyTaskRequest to the task queue. | ||
* | ||
* @param dinkyTaskRequest the DinkyTaskRequest to be added to the task queue | ||
* @return true if the task was successfully added, false otherwise | ||
*/ | ||
boolean pushAddTask(DinkyTaskRequest dinkyTaskRequest); | ||
|
||
/** | ||
* A description of the entire Java function. | ||
* | ||
* @param projectCode description of parameter | ||
* @param processCode description of parameter | ||
* @param taskCode description of parameter | ||
* @param dinkyTaskRequest description of parameter | ||
* @return description of return value | ||
*/ | ||
boolean pushUpdateTask(long projectCode, long processCode, long taskCode, DinkyTaskRequest dinkyTaskRequest); | ||
|
||
/** | ||
* Retrieves a list of TaskMainInfo objects based on the provided dinkyTaskId. | ||
* | ||
* @param dinkyTaskId the ID of the task | ||
* @return a list of TaskMainInfo objects | ||
*/ | ||
List<TaskMainInfo> getTaskMainInfos(long dinkyTaskId); | ||
|
||
/** | ||
* Retrieves the task definition information for a given dinky task ID. | ||
* | ||
* @param dinkyTaskId the ID of the dinky task | ||
* @return the task definition information | ||
*/ | ||
TaskDefinition getTaskDefinitionInfo(long dinkyTaskId); | ||
} |
Oops, something went wrong.