Container Manager to expose inContainerMode()
[controller.git] / opendaylight / containermanager / it.implementation / src / main / java / org / opendaylight / controller / containermanager / internal / ContainerManager.java
index b5624af6afc8e916572bad446ab1e1438a166b3a..f2219e53b84506d11296e30783723e6acd03e877 100644 (file)
@@ -43,7 +43,7 @@ public class ContainerManager implements IContainerManager {
      * This is configuration world: container names (also the map key)
      * are maintained as they were configured by user, same case
      */
-    private Set<IContainerAware> iContainerAware = (Set<IContainerAware>) Collections
+    private Set<IContainerAware> iContainerAware = Collections
             .synchronizedSet(new HashSet<IContainerAware>());
     private Set<IContainerListener> iContainerListener = Collections
             .synchronizedSet(new HashSet<IContainerListener>());
@@ -192,8 +192,7 @@ public class ContainerManager implements IContainerManager {
 
     @Override
     public boolean doesContainerExist(String ContainerId) {
-        // TODO Auto-generated method stub
-        return false;
+        return GlobalConstants.DEFAULT.toString().equalsIgnoreCase(ContainerId);
     }
 
     @Override
@@ -214,4 +213,10 @@ public class ContainerManager implements IContainerManager {
         return null;
     }
 
+    @Override
+    public boolean inContainerMode() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }