3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
11 * @file ContainerImpl.java
13 * @brief Class that instantiated per-container implements the
14 * interface IContainer
18 package org.opendaylight.controller.containermanager.internal;
20 import java.util.Dictionary;
21 import org.apache.felix.dm.Component;
22 import org.opendaylight.controller.sal.core.NodeConnector;
24 import org.opendaylight.controller.sal.core.Node;
25 import org.opendaylight.controller.sal.core.ContainerFlow;
26 import java.util.List;
27 import org.opendaylight.controller.sal.core.IContainer;
29 public class ContainerImpl implements IContainer {
30 private String containerName = null;
33 * Function called by the dependency manager when all the required
34 * dependencies are satisfied
37 void init(Component c) {
38 Dictionary<?, ?> props = c.getServiceProperties();
40 this.containerName = (String) props.get("containerName");
45 public String getName() {
46 return this.containerName;
50 public List<ContainerFlow> getContainerFlows() {
55 public short getTag(Node n) {
60 public Set<NodeConnector> getNodeConnectors() {
65 public Set<Node> getNodes() {