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 IContainer.java
13 * @brief Interface used to retrieve the status of a given Container
18 package org.opendaylight.controller.sal.core;
20 import java.util.List;
25 * Interface used to retrieve the status of a given Container
28 public interface IContainer {
30 * Returns the Name of the container described
32 * @return the container Name
34 public String getName();
37 * The list of container flows associated with a container
39 * @return The list of FlowSpecs associated with the container
41 public List<ContainerFlow> getContainerFlows();
44 * Return the tag on which a Node is expected to receive traffic
45 * for a given container.
47 * @param n The node for which we want to get the Tag
49 * @return the tag on which we expect to receive traffic on a
50 * given Node for a given container
52 public short getTag(Node n);
55 * Return an array of all the NodeConnectors that are part of the
58 * @return The array of nodeConnectors part of the container
60 public Set<NodeConnector> getNodeConnectors();
63 * Return an array of all the Nodes that are part of a container
65 * @return The array of Nodes that are part of the container
67 public Set<Node> getNodes();
70 * Return the well known administrator role for this container
72 * @return The administrator role for this container
74 public String getContainerAdminRole();
77 * Return the well known operator role for this container
79 * @return The operator role for this container
81 public String getContainerOperatorRole();