You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by go...@apache.org on 2017/04/12 19:03:03 UTC
airavata git commit: Add JobSubmissionTask Interface,
Add worker-commons mvn dependency
Repository: airavata
Updated Branches:
refs/heads/feature-workload-mgmt d29ebe8fe -> 993bc1d07
Add JobSubmissionTask Interface, Add worker-commons mvn dependency
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/993bc1d0
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/993bc1d0
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/993bc1d0
Branch: refs/heads/feature-workload-mgmt
Commit: 993bc1d0733ac4ffdea9b679725ac99e7c7b5e2d
Parents: d29ebe8
Author: Gourav Shenoy <go...@apache.org>
Authored: Wed Apr 12 15:02:57 2017 -0400
Committer: Gourav Shenoy <go...@apache.org>
Committed: Wed Apr 12 15:02:57 2017 -0400
----------------------------------------------------------------------
modules/worker/task-jobsubmission/pom.xml | 5 +++
.../task/jobsubmission/JobSubmissionTask.java | 34 ++++++++++++++++++++
2 files changed, 39 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/993bc1d0/modules/worker/task-jobsubmission/pom.xml
----------------------------------------------------------------------
diff --git a/modules/worker/task-jobsubmission/pom.xml b/modules/worker/task-jobsubmission/pom.xml
index 2cfb818..600512e 100644
--- a/modules/worker/task-jobsubmission/pom.xml
+++ b/modules/worker/task-jobsubmission/pom.xml
@@ -21,6 +21,11 @@
<artifactId>airavata-worker-commons</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.airavata</groupId>
+ <artifactId>airavata-data-models</artifactId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/airavata/blob/993bc1d0/modules/worker/task-jobsubmission/src/main/java/org/apache/airavata/worker/task/jobsubmission/JobSubmissionTask.java
----------------------------------------------------------------------
diff --git a/modules/worker/task-jobsubmission/src/main/java/org/apache/airavata/worker/task/jobsubmission/JobSubmissionTask.java b/modules/worker/task-jobsubmission/src/main/java/org/apache/airavata/worker/task/jobsubmission/JobSubmissionTask.java
new file mode 100644
index 0000000..76a843e
--- /dev/null
+++ b/modules/worker/task-jobsubmission/src/main/java/org/apache/airavata/worker/task/jobsubmission/JobSubmissionTask.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * 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.airavata.worker.task.jobsubmission;
+
+import org.apache.airavata.model.status.JobStatus;
+import org.apache.airavata.worker.commons.context.TaskContext;
+import org.apache.airavata.worker.commons.task.Task;
+import org.apache.airavata.worker.commons.task.TaskException;
+
+/**
+ * Created by goshenoy on 4/12/17.
+ */
+public interface JobSubmissionTask extends Task {
+
+ JobStatus cancel(TaskContext taskcontext) throws TaskException;
+}
\ No newline at end of file