Class SharedSegment
- java.lang.Object
-
- org.opennms.netmgt.enlinkd.service.api.SharedSegment
-
-
Constructor Summary
Constructors Constructor Description SharedSegment()
-
Method Summary
-
-
-
Method Detail
-
getBridgeBridgeLinks
public static List<BridgeBridgeLink> getBridgeBridgeLinks(SharedSegment segment) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
getBridgeMacLinks
public static List<BridgeMacLink> getBridgeMacLinks(SharedSegment segment) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
create
public static SharedSegment create(BridgeMacLink link) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
create
public static SharedSegment create(BridgeBridgeLink link) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
merge
public static void merge(BroadcastDomain domain, SharedSegment upsegment, Map<BridgePortWithMacs,Set<BridgePortWithMacs>> splitted, Set<String> macsonsegment, BridgePort rootport, Set<BridgePortWithMacs> throughset)
-
createAndAddToBroadcastDomain
public static SharedSegment createAndAddToBroadcastDomain(BroadcastDomain domain, BridgePortWithMacs bft)
-
create
public static SharedSegment create()
-
getCreateTime
public Date getCreateTime()
-
setCreateTime
public void setCreateTime(Date createTime)
-
getLastPollTime
public Date getLastPollTime()
-
setLastPollTime
public void setLastPollTime(Date lastPollTime)
-
setDesignatedBridge
public boolean setDesignatedBridge(Integer designatedBridge)
-
getDesignatedBridge
public Integer getDesignatedBridge()
-
getDesignatedPort
public BridgePort getDesignatedPort() throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
isEmpty
public boolean isEmpty()
-
getBridgePortsOnSegment
public Set<BridgePort> getBridgePortsOnSegment()
-
noMacsOnSegment
public boolean noMacsOnSegment()
-
containsMac
public boolean containsMac(String mac)
-
getBridgePort
public BridgePort getBridgePort(Integer nodeid) throws BridgeTopologyException
- Throws:
BridgeTopologyException
-
containsPort
public boolean containsPort(BridgePort port)
-
printTopology
public String printTopology()
- Specified by:
printTopology
in interfaceTopology
-
-