public class ContainerData extends Object implements Serializable
| Constructor and Description |
|---|
ContainerData(ContainerConfig conf)
Build a ContainerData from container configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFlowSpec(org.opendaylight.controller.sal.core.ContainerFlow cFlow) |
void |
addPortToSwitch(org.opendaylight.controller.sal.core.NodeConnector port)
Add to the container a NodeConnector, that implicitely means also
the Node being added
|
boolean |
containsFlowSpec(org.opendaylight.controller.sal.core.ContainerFlow cFlow) |
void |
deleteFlowSpec(org.opendaylight.controller.sal.core.ContainerFlow cFlow) |
String |
getContainerAdminRole() |
List<org.opendaylight.controller.sal.core.ContainerFlow> |
getContainerFlowSpecs() |
String |
getContainerName()
getter for containerName
|
String |
getContainerOperatorRole() |
int |
getFlowSpecCount() |
Set<org.opendaylight.controller.sal.core.NodeConnector> |
getNodeConnectors()
Returns all the node connectors part of the container
|
Set<org.opendaylight.controller.sal.core.NodeConnector> |
getPorts(org.opendaylight.controller.sal.core.Node switchId)
retrieve all NodeConnectors on a given switch on the containerName
used in this object
|
short |
getStaticVlan()
getter for static vlan
|
ConcurrentMap<org.opendaylight.controller.sal.core.Node,Set<org.opendaylight.controller.sal.core.NodeConnector>> |
getSwPorts()
Returns the DB of all the association Node -> List of
NodeConnectors composing this container
|
boolean |
hasStaticVlanAssigned()
Check if the static vlan has non-zero value in that case is
assumed to be assigned
|
boolean |
isFlowSpecEmpty() |
boolean |
isSwitchInContainer(org.opendaylight.controller.sal.core.Node switchId)
Existence check of a Node in a container
|
boolean |
matchName(String name) |
boolean |
portListEmpty(org.opendaylight.controller.sal.core.Node switchId)
Test for existance of NodeConnectors on a Node in a container
|
void |
removePortFromSwitch(org.opendaylight.controller.sal.core.NodeConnector port)
Remove from the container a NodeConnector, that implicitely means also
the Node being removed
|
public ContainerData(ContainerConfig conf)
conf - configuration from where the ContainerData need to be extractedpublic String getContainerName()
public short getStaticVlan()
public boolean hasStaticVlanAssigned()
public Set<org.opendaylight.controller.sal.core.NodeConnector> getPorts(org.opendaylight.controller.sal.core.Node switchId)
switchId - the Node for switch we want to retrieve the list of portspublic ConcurrentMap<org.opendaylight.controller.sal.core.Node,Set<org.opendaylight.controller.sal.core.NodeConnector>> getSwPorts()
public void addPortToSwitch(org.opendaylight.controller.sal.core.NodeConnector port)
port - NodeConnector corresponding to the port being added
in the containerpublic void removePortFromSwitch(org.opendaylight.controller.sal.core.NodeConnector port)
port - NodeConnector corresponding to the port being removed
in the containerpublic boolean isSwitchInContainer(org.opendaylight.controller.sal.core.Node switchId)
switchId - See if a particular node is part of the containerpublic boolean portListEmpty(org.opendaylight.controller.sal.core.Node switchId)
switchId - Node we are testing for port existancepublic void deleteFlowSpec(org.opendaylight.controller.sal.core.ContainerFlow cFlow)
public void addFlowSpec(org.opendaylight.controller.sal.core.ContainerFlow cFlow)
public boolean isFlowSpecEmpty()
public boolean containsFlowSpec(org.opendaylight.controller.sal.core.ContainerFlow cFlow)
public int getFlowSpecCount()
public List<org.opendaylight.controller.sal.core.ContainerFlow> getContainerFlowSpecs()
public boolean matchName(String name)
public Set<org.opendaylight.controller.sal.core.NodeConnector> getNodeConnectors()
public String getContainerAdminRole()
public String getContainerOperatorRole()
Copyright © 2015. All Rights Reserved.