public class DefaultEdgeLink extends DefaultLink implements EdgeLink
DefaultLink.Builder
AbstractProjectableModel.AnnotationDriverData
Link.State, Link.Type
NO_DRIVER, NO_DRIVER_SERVICE
Constructor and Description |
---|
DefaultEdgeLink(ProviderId providerId,
ConnectPoint hostPoint,
HostLocation hostLocation,
boolean isIngress,
Annotations... annotations)
Creates an edge link using the supplied information.
|
Modifier and Type | Method and Description |
---|---|
static DefaultEdgeLink |
createEdgeLink(ConnectPoint edgePort,
boolean isIngress)
Creates a phantom edge link, to an unspecified end-station.
|
static DefaultEdgeLink |
createEdgeLink(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.
|
HostId |
hostId()
Returns the host identification.
|
HostLocation |
hostLocation()
Returns the connection point where the host attaches to the
network infrastructure.
|
builder, dst, equals, hashCode, isExpected, src, state, toString, type
as, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverService
providerId
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
providerId
as, is, project
public DefaultEdgeLink(ProviderId providerId, ConnectPoint hostPoint, HostLocation hostLocation, boolean isIngress, Annotations... annotations)
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 annotationspublic HostId hostId()
EdgeLink
public HostLocation hostLocation()
EdgeLink
hostLocation
in interface EdgeLink
public static DefaultEdgeLink createEdgeLink(ConnectPoint edgePort, boolean isIngress)
edgePort
- network edge portisIngress
- true to indicate host-to-network direction; false
for network-to-host directionpublic static DefaultEdgeLink createEdgeLink(Host host, boolean isIngress)
host
- hostisIngress
- true to indicate host-to-network direction; false
for network-to-host directionpublic static Set<DefaultEdgeLink> createEdgeLinks(Host host, boolean isIngress)
host
- hostisIngress
- true to indicate host-to-network direction; false
for network-to-host direction