Package org.onosproject.net
Class DefaultEdgeLink
- java.lang.Object
 - 
- org.onosproject.net.AbstractAnnotated
 - 
- org.onosproject.net.AbstractModel
 - 
- org.onosproject.net.AbstractProjectableModel
 - 
- org.onosproject.net.DefaultLink
 - 
- org.onosproject.net.DefaultEdgeLink
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Annotated,Projectable,EdgeLink,Link,NetworkResource,Provided
public class DefaultEdgeLink extends DefaultLink implements EdgeLink
Default edge link model implementation. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class org.onosproject.net.DefaultLink
DefaultLink.Builder 
- 
Nested classes/interfaces inherited from class org.onosproject.net.AbstractProjectableModel
AbstractProjectableModel.AnnotationDriverData 
- 
Nested classes/interfaces inherited from interface org.onosproject.net.Link
Link.State, Link.Type 
 - 
 
- 
Field Summary
- 
Fields inherited from class org.onosproject.net.AbstractProjectableModel
NO_DRIVER, NO_DRIVER_SERVICE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DefaultEdgeLink(ProviderId providerId, ConnectPoint hostPoint, HostLocation hostLocation, boolean isIngress, Annotations... annotations)Creates an edge link using the supplied information. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultEdgeLinkcreateEdgeLink(ConnectPoint edgePort, boolean isIngress)Creates a phantom edge link, to an unspecified end-station.static DefaultEdgeLinkcreateEdgeLink(Host host, boolean isIngress)Creates a an edge link, to the specified end-station.static Set<DefaultEdgeLink>createEdgeLinks(Host host, boolean isIngress)Creates edge links, to the specified end-station.HostIdhostId()Returns the host identification.HostLocationhostLocation()Returns the connection point where the host attaches to the network infrastructure.- 
Methods inherited from class org.onosproject.net.DefaultLink
builder, dst, equals, hashCode, isExpected, src, state, toString, type 
- 
Methods inherited from class org.onosproject.net.AbstractProjectableModel
as, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverService 
- 
Methods inherited from class org.onosproject.net.AbstractModel
providerId 
- 
Methods inherited from class org.onosproject.net.AbstractAnnotated
annotations 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.onosproject.net.Annotated
annotations 
- 
Methods inherited from interface org.onosproject.net.driver.Projectable
as, is, project 
- 
Methods inherited from interface org.onosproject.net.Provided
providerId 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
DefaultEdgeLink
public DefaultEdgeLink(ProviderId providerId, ConnectPoint hostPoint, HostLocation hostLocation, boolean isIngress, Annotations... annotations)
Creates an edge link using the supplied information.- Parameters:
 providerId- provider identityhostPoint- host-side connection pointhostLocation- location where host attaches to the networkisIngress- true to indicate host-to-network direction; false for network-to-host directionannotations- optional key/value annotations
 
 - 
 
- 
Method Detail
- 
hostId
public HostId hostId()
Description copied from interface:EdgeLinkReturns the host identification. 
- 
hostLocation
public HostLocation hostLocation()
Description copied from interface:EdgeLinkReturns the connection point where the host attaches to the network infrastructure.- Specified by:
 hostLocationin interfaceEdgeLink- Returns:
 - host location point
 
 
- 
createEdgeLink
public static DefaultEdgeLink createEdgeLink(ConnectPoint edgePort, boolean isIngress)
Creates a phantom edge link, to an unspecified end-station. This link does not represent any actually discovered link stored in the system.- Parameters:
 edgePort- network edge portisIngress- true to indicate host-to-network direction; false for network-to-host direction- Returns:
 - new phantom edge link
 
 
- 
createEdgeLink
public static DefaultEdgeLink createEdgeLink(Host host, boolean isIngress)
Creates a an edge link, to the specified end-station. The edge link inherits the target host annotations.- Parameters:
 host- hostisIngress- true to indicate host-to-network direction; false for network-to-host direction- Returns:
 - new phantom edge link
 
 
- 
createEdgeLinks
public static Set<DefaultEdgeLink> createEdgeLinks(Host host, boolean isIngress)
Creates edge links, to the specified end-station. The edge link inherits the target host annotations.- Parameters:
 host- hostisIngress- true to indicate host-to-network direction; false for network-to-host direction- Returns:
 - new phantom edge link
 
 
 - 
 
 -