aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject aries-containers git commit: Marathon bingind: support destroying containers.
Date Fri, 26 May 2017 14:51:14 GMT
Repository: aries-containers
Updated Branches:
  refs/heads/master e9adc1259 -> d0e501301


Marathon bingind: support destroying containers.


Project: http://git-wip-us.apache.org/repos/asf/aries-containers/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-containers/commit/d0e50130
Tree: http://git-wip-us.apache.org/repos/asf/aries-containers/tree/d0e50130
Diff: http://git-wip-us.apache.org/repos/asf/aries-containers/diff/d0e50130

Branch: refs/heads/master
Commit: d0e50130136f0163bb398f7067463d6a4fad682c
Parents: e9adc12
Author: David Bosschaert <davidb@apache.org>
Authored: Fri May 26 15:50:51 2017 +0100
Committer: David Bosschaert <davidb@apache.org>
Committed: Fri May 26 15:50:51 2017 +0100

----------------------------------------------------------------------
 .../apache/aries/containers/marathon/impl/ContainerImpl.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-containers/blob/d0e50130/containers-marathon/src/main/java/org/apache/aries/containers/marathon/impl/ContainerImpl.java
----------------------------------------------------------------------
diff --git a/containers-marathon/src/main/java/org/apache/aries/containers/marathon/impl/ContainerImpl.java
b/containers-marathon/src/main/java/org/apache/aries/containers/marathon/impl/ContainerImpl.java
index 88264d2..a8c1f52 100644
--- a/containers-marathon/src/main/java/org/apache/aries/containers/marathon/impl/ContainerImpl.java
+++ b/containers-marathon/src/main/java/org/apache/aries/containers/marathon/impl/ContainerImpl.java
@@ -59,8 +59,7 @@ public class ContainerImpl implements Container {
 
     @Override
     public void destroy() {
-        // TODO Auto-generated method stub
-
+        marathonClient.deleteAppTask(appID, taskID, "true");
     }
 
     @Override
@@ -88,6 +87,4 @@ public class ContainerImpl implements Container {
         return "ContainerImpl [appID=" + appID + ", taskID=" + taskID + ", host=" + host
+
                 ", ports=" + ports + ", service=" + service.getConfiguration().getServiceName()
+ "]";
     }
-
-
 }


Mime
View raw message