Class BroadcastDomain
- java.lang.Object
-
- org.opennms.netmgt.enlinkd.service.api.BroadcastDomain
-
-
Field Summary
Fields Modifier and Type Field Description static float
DOMAIN_MATCH_MIN_RATIO
static int
DOMAIN_MATCH_MIN_SIZE
static int
maxlevel
-
Constructor Summary
Constructors Constructor Description BroadcastDomain()
-
Method Summary
-
-
-
Field Detail
-
maxlevel
public static int maxlevel
-
DOMAIN_MATCH_MIN_SIZE
public static final int DOMAIN_MATCH_MIN_SIZE
- See Also:
- Constant Field Values
-
DOMAIN_MATCH_MIN_RATIO
public static final float DOMAIN_MATCH_MIN_RATIO
- See Also:
- Constant Field Values
-
-
Method Detail
-
addforwarders
public static void addforwarders(BroadcastDomain domain, BridgeForwardingTable bridgeFT)
-
electRootBridge
public static Bridge electRootBridge(BroadcastDomain domain) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
getUpperBridge
public static Bridge getUpperBridge(BroadcastDomain domain, Bridge electableroot, int level) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
getUpperForwardingBridgePorts
public static Map<Integer,Integer> getUpperForwardingBridgePorts(BroadcastDomain domain, Bridge bridge, Map<Integer,Integer> downports, int level) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
calculateBFT
public static Set<BridgeForwardingTableEntry> calculateBFT(BroadcastDomain domain, Bridge bridge) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
getCalculateBFT
public static Integer getCalculateBFT(BroadcastDomain domain, SharedSegment segment, Bridge bridge, Map<Integer,Integer> bridgetobridgeport, Set<Integer> downBridgeIds, int level) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
hierarchySetUp
public static void hierarchySetUp(BroadcastDomain domain, Bridge root) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
loadTopologyEntry
public static boolean loadTopologyEntry(BroadcastDomain domain, SharedSegment segment)
-
clearTopologyForBridge
public static void clearTopologyForBridge(BroadcastDomain domain, Integer bridgeid) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
removeBridge
public static void removeBridge(BroadcastDomain domain, int bridgeId) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
cleanForwarders
public void cleanForwarders()
-
getForwarder
public BridgePortWithMacs getForwarder(BridgePort port)
-
addForwarding
public void addForwarding(BridgePort forwardport, String forwardmac)
-
setForwarders
public void setForwarders(Set<BridgePortWithMacs> forwarders)
-
getForwarding
public Set<BridgePortWithMacs> getForwarding()
-
getForwarders
public Set<BridgePortWithMacs> getForwarders(Integer bridgeId)
-
cleanForwarders
public Set<BridgePortWithMacs> cleanForwarders(Integer bridgeId)
-
clearTopology
public void clearTopology()
-
isEmpty
public boolean isEmpty()
-
getSharedSegments
public List<SharedSegment> getSharedSegments()
-
getRootBridge
public Bridge getRootBridge()
-
getBridge
public Bridge getBridge(int bridgeId)
-
getSharedSegments
public List<SharedSegment> getSharedSegments(Integer bridgeId)
-
getBridgeOnSharedSegment
public Set<Bridge> getBridgeOnSharedSegment(SharedSegment segment)
-
getSharedSegment
public SharedSegment getSharedSegment(Integer bridgeid, Integer bridgePort)
-
getSharedSegment
public SharedSegment getSharedSegment(BridgePort bridgePort)
-
printTopology
public String printTopology()
- Specified by:
printTopology
in interfaceTopology
-
-