Repository: incubator-taverna-common-activities
Updated Branches:
  refs/heads/docker 57e10e1de -> bebc1f292


Adding initial project structure for docker activity.


Project: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/commit/fbc9e2a8
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/tree/fbc9e2a8
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/diff/fbc9e2a8

Branch: refs/heads/docker
Commit: fbc9e2a81eee5736ed943caba5942202a9fa8127
Parents: 57e10e1
Author: Nadeesh Dilanga <[email protected]>
Authored: Mon Jun 13 02:08:33 2016 -0400
Committer: Nadeesh Dilanga <[email protected]>
Committed: Mon Jun 13 02:08:33 2016 -0400

----------------------------------------------------------------------
 taverna-docker-activity/pom.xml                 | 46 ++++++++++++++++++-
 .../activities/docker/DockerActivity.java       | 48 ++++++++++++++++++++
 .../taverna/activities/docker/RESTUtil.java     | 23 ++++++++++
 3 files changed, 116 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/blob/fbc9e2a8/taverna-docker-activity/pom.xml
----------------------------------------------------------------------
diff --git a/taverna-docker-activity/pom.xml b/taverna-docker-activity/pom.xml
index f69d078..d972584 100644
--- a/taverna-docker-activity/pom.xml
+++ b/taverna-docker-activity/pom.xml
@@ -68,8 +68,52 @@
                        <artifactId>jackson-databind</artifactId>
                        <version>${jackson.version}</version>
                </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient-osgi</artifactId>
+            <version>${apache.httpclient.version}</version>
+            <exclusions>
+                <!-- These are all embedded within httpclient-osgi -->
+                <exclusion>
+                    <groupId>org.apache.httpcomponents</groupId>
+                    <artifactId>httpclient</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>commons-codec</groupId>
+                    <artifactId>commons-codec</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.httpcomponents</groupId>
+                    <artifactId>httpmime</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.httpcomponents</groupId>
+                    <artifactId>httpclient-cache</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.httpcomponents</groupId>
+                    <artifactId>fluent-hc</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpcore-osgi</artifactId>
+            <version>${apache.httpcore.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.apache.httpcomponents</groupId>
+                    <artifactId>httpcore</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.httpcomponents</groupId>
+                    <artifactId>httpcore-nio</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
 
-       </dependencies>
+
+    </dependencies>
 
 
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/blob/fbc9e2a8/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/DockerActivity.java
----------------------------------------------------------------------
diff --git 
a/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/DockerActivity.java
 
b/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/DockerActivity.java
new file mode 100644
index 0000000..2760546
--- /dev/null
+++ 
b/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/DockerActivity.java
@@ -0,0 +1,48 @@
+/*
+* 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.taverna.activities.docker;
+
+import com.fasterxml.jackson.databind.JsonNode;
+import org.apache.taverna.reference.T2Reference;
+import 
org.apache.taverna.workflowmodel.processor.activity.AbstractAsynchronousActivity;
+import 
org.apache.taverna.workflowmodel.processor.activity.ActivityConfigurationException;
+import 
org.apache.taverna.workflowmodel.processor.activity.AsynchronousActivityCallback;
+
+import java.util.Map;
+
+/**
+ * Docker activity class responsible of handling tasks that are related to 
creating/invoking an external docker container.
+ */
+public class DockerActivity extends AbstractAsynchronousActivity<JsonNode> {
+
+    @Override
+    public void configure(JsonNode jsonNode) throws 
ActivityConfigurationException {
+
+    }
+
+    @Override
+    public JsonNode getConfiguration() {
+        return null;
+    }
+
+    @Override
+    public void executeAsynch(Map<String, T2Reference> map, 
AsynchronousActivityCallback asynchronousActivityCallback) {
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/blob/fbc9e2a8/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/RESTUtil.java
----------------------------------------------------------------------
diff --git 
a/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/RESTUtil.java
 
b/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/RESTUtil.java
new file mode 100644
index 0000000..460f275
--- /dev/null
+++ 
b/taverna-docker-activity/src/main/java/org/apache/taverna/activities/docker/RESTUtil.java
@@ -0,0 +1,23 @@
+/*
+* 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.taverna.activities.docker;
+
+public class RESTUtil {
+}

Reply via email to